Hi,
Trying to get sendmail to auth with email address/pass to relay host using tls for outbound mail, no incoming mail. What is happening is it tries to auth as root instead of what was configured in authinfo on the remote relay host and it obviously fails.
Did searches for something things like this and have tried some of the configs with host.internal.mc such as:
and further down in the .mc file it has:
Since this FreeBSD Server is behind firewall also have masquerade but it is not working .
Perhaps if someone can point out a good site to configure sendmail for FreeBSD for what I am trying to do, that would be very helpful.
Thanks.
Trying to get sendmail to auth with email address/pass to relay host using tls for outbound mail, no incoming mail. What is happening is it tries to auth as root instead of what was configured in authinfo on the remote relay host and it obviously fails.
Did searches for something things like this and have tried some of the configs with host.internal.mc such as:
Code:
dnl define(`SMART_HOST', `domain.tld:587')
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/authinfo')dnl
dnl define(`SMART_HOST', `domain.tld')
dnl SET OUTBOUND DOMAIN
MASQUERADE_AS(`domain.tld')
MASQUERADE_DOMAIN(domain.tld)
FEATURE(masquerade_envelope)
FEATURE(masquerade_entire_domain)
Code:
dnl SMART HOST CONFIG
define(`SMART_HOST', `domain.tld')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/authinfo.db')dnl
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl Uncomment the first line to change the location of the default
Perhaps if someone can point out a good site to configure sendmail for FreeBSD for what I am trying to do, that would be very helpful.
Thanks.