Sendmail gateway using mailertable and access db

Mike Kercher mike at vesol.com
Wed Nov 22 14:56:39 GMT 2006


 

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Jens Ahlin
> Sent: Wednesday, November 22, 2006 5:19 AM
> To: mailscanner at lists.mailscanner.info
> Subject: OT: Sendmail gateway using mailertable and access db
> 
> 
> My config using test.com as domain and xxx.xxx.xxx.xxx as the 
> Exchange server IP address.
> 
> mailertable:
> 
> test.com smtp[xxx.xxx.xxx.xxx]
> 
> access db:
> test.com     RELAY
> xxx.xxx.xxx.xxx     RELAY
> 
> TO:user at test.com    RELAY
> TO:test.com         ERROR:5.1.1:550 User unknown
> 
> I have no "relay" FEATURE in my sendmail.mc.
> 
> Using this config results in all mails sent to user at test.com 
> are rejected with error 550 User unknown.
> 
> I have read the sendmail documentation regarding access db 
> and tried a lot of different settings (Only TO:, Only 
> Connect:, TO: and Connect:)
> 
> Any idea of how to do this?
> 
>         Jens
> 
> --

Using your example, test.com should be listed in /etc/mail/relay-domains
and NOT in /etc/mail/local-host-names.

I would highly recommend you implement milter-ahead and set your
Exchange server(s) to reject unknown recipients.

In /etc/mail/access, remove:

test.com			RELAY
TO:user at test.com    	RELAY
TO:test.com         	ERROR:5.1.1:550 User unknown

Mike


More information about the MailScanner mailing list