Setting gateway

Julian Field MailScanner at ecs.soton.ac.uk
Fri Dec 7 14:09:37 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Steve Freegard wrote:
> 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).
sendmail -bv email at domain.com
is rather shorter :-)
>
>> 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.
>

Jules

- -- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.7.0 (Build 867)
Comment: (pgp-secured)
Charset: ISO-8859-1

wj8DBQFHWVQhEfZZRxQVtlQRAobRAKCkIGz92yA7MJ6cY0CtZUghKb8FhgCeND1V
Ey+9+ohK9OF5R1s8jCX04vY=
=fRQf
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list