Setting gateway

Steve Freegard steve.freegard at fsl.com
Fri Dec 7 12:51:13 GMT 2007


Hi Juan Pablo,

Juan Pablo Lorier wrote:
> Hi Martin,
>  
> Thanks for the answer, but I've already done that. I still don's know if 
> it's working because I can't get mail to enter the server to be scanned 
> and send to the mail server because as there are no user accounts for 
> sendmail un the mailscanner gateway, it bounces the mails with the error 
> user unknown.

This is being caused by the following possible reasons:

1)  The hostname of the machine is the same as the domain (BAD!) so 
sendmail thinks all the mailboxes are local (which don't exist).

2)  The domain is listed as an alias of the machine (e.g. 
/etc/mail/local-host-names on a RedHat system) causing the same issue as 
above.

3)  You haven't configured Sendmail to relay messages for this domain 
correctly.

You should have added a 'mailertable' entry for the domain e.g.

domain.com    esmtp:[ip.add.re.ss]

And defined told the access-map that relaying messages to this domain is 
permissible:

To:domain.com		RELAY

And you should make sure that you remembered to build the database files 
for both access and mailterable by running 'make'.

Running:

echo "3,0 email at domain.com" | sendmail -bt -d0.10

Should show what sendmail thinks it should do with the message (look for 
esmtp or smtp on the last-line, local is incorrect).

> As I see it, it's not clean to set every user both in the gateway and in 
> the mail server, so there should be two options:
> - have sendmail not to check for user existence and just accept the mail 
> and forward it to the mail server
> - have sendmail to use the same LDAP database that the mail server.
> 
> I prefer the first for less complexity and to avoid another point of 
> failure.

This is a separate issue.  Get the above working first, then start 
looking at the various milters for Sendmail that can do SMTP call-ahead 
recipient verification (milter-ahead, smf-sav, mailfromd etc.).

Kind regards,
Steve.

--
Steve Freegard
Fort Systems Ltd.



More information about the MailScanner mailing list