Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting up auth - sendmail relays anything?

Status
Not open for further replies.

anorakgirl

Programmer
Jun 5, 2001
103
GB
hi,
i'm trying to het auth set up on sendmail. i've followed the distructions here:
but sendmail still seems to relay anything i.e if i send a mail from outlook with my server set as the smtp server, it sends even if i don't tick the box marked "my server requires authentication".

in my sendmail.mc i have the lines:
define(`confAUTH_OPTIONS', `A y')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
there is nothing in my access or relay-domains files.
i'm not sure where else to check for what is allowing relaying. any help appreciated!


~ ~
 
Did you run the m4 macro compiler after you edited sendmail.mc?

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

You must also restart sendmail so it reads the new sendmail.cf
 
Your access file must have at least an entry like the following

localhost RELAY
localhost.localdomain RELAY
12.34.56.789 RELAY
(12.34.56.789 = the "source" address of all your mail - dmz nic / server nic)

Your relay-domains file should look something like this
hostname (your mail servers host name)
mydomain.com (the primary domain you wish to route mail for)
{All other domains you wish to relay for should be included here too}

And depending on the version of Sendmail / the OS you are running you may need the following (see sendmail.cw) local-hosts-names file
mydomain.com
mail.mydomain.com
12.34.56.789 (see above - this will stop sendmail flagging mismatched DNS lookups with "may be forged")

You will also need to include your server nic address and or your dmz nic address in your regular hosts file.

There is no God, only 10001010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top