Sendmail Submit

I'm trying to configure sendmail for simple log sending via smart host. I should then configure submit

Il mio rc.conf
Code:
sendmail_enable="NO"
sendmail_submit_enable="YES"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="YES"
At this point it is not clear to me whether I should configure the hostname.mc or hostname.submit.mc file
It doesn't work for me whether I use one or the other

My Config
Code:
dnl Dialup users should uncomment and define this appropriately
define(`SMART_HOST', `my smart host')
define(`RELAY_MAILER_ARGS', `TCP $h my port')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/authinfo')dnl
File authinfo
Code:
AuthInfo:my smart host "U:User" "I:User.Access" "P:Password"
Do I have to enter M:LOGIN?

I've done hash authinfo < authinfo to generate authinfo.db

However with mailq or sendmail -bp I see 5 emails in the queue

But

/var/spool/mqueque
and
/var/spool/clientmqueque

Is Emity

From the file /var/log/maillog sendmail tries to contact the recipient's server directly, for example Google, without going through the smart host

Thank You
 
No one can help me I was able to resolve the newaliases error by renaming /usr/bin/newaliases to -org and creating a link to
/usr/local/bin/newaliases

Now it works but I can't send emails via smarthost in any way. The server tries to send the mail itself without using the smart host :( I discovered that the queue ends in /var/spool/dma but in the submit.cf file it is indicated /var/spool/clientmqueue
 
Just to add information if someone does not want to use dma(8). In this case /etc/mail/mailer.conf has to be different. I use smtpd(8). The file is as below and has its origin from previous installations. I do not remember when of even if I have ever edited that file.
Code:
> cat /etc/mail/mailer.conf
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
# If dma(8) is installed, an example mailer.conf that uses dma(8) instead can
# can be found in /usr/share/examples/dma.
#
sendmail        /usr/libexec/sendmail/sendmail
mailq           /usr/libexec/sendmail/sendmail
newaliases      /usr/libexec/sendmail/sendmail
hoststat        /usr/libexec/sendmail/sendmail
purgestat       /usr/libexec/sendmail/sendmail
 
Code:
# $DragonFly: src/etc/dma/auth.conf,v 1.1 2008/02/02 18:24:00 matthias Exp $
#
# SMTP authentication entries (currently AUTH LOGIN only)
# Format: user|my.smarthost.example.com:password
iirc dma does not use hashes, just flat files (but i may be wrong)
 
Code:
# $DragonFly: src/etc/dma/auth.conf,v 1.1 2008/02/02 18:24:00 matthias Exp $
#
# SMTP authentication entries (currently AUTH LOGIN only)
# Format: user|my.smarthost.example.com:password
iirc dma does not use hashes, just flat files (but i may be wrong)
It is not the best security to leave credentials in clear text inside a file. Even though I have set very complex passwords to access the system
 
a hash (like sendmail has) does nothing for security its just for speed key/value store
you can strings a sendmail hash and see the passwords or dump them with various berkeley db tools
 
Thanks

dma is perfect for what I need to do and forward the logs to an email address via smart host. Simple to configure does not expose service ports etc
 
Back
Top