At 11:10 31/05/01 +0200, Hans Scheffers wrote:
>Hi all
>This is a little bit off topic, but I have the following problem:
>My firewall tries to send mail using a external smtp server instead of
>my internal mailserver. The result is that I get an error-message back,
>complaining about a no FQDN ( what is correct on this FW). How do I
>configure sendmail to:
>a) use my correct FQDN when sending mail; or
What OS are you running?
Normally, you just set the hostname variable on your OS using an FQDN.
This is a good practice that people at Sun and other places have forgotten:).
Always use an FQDN hostname!
If this is not the reason, configure the masquerade feature of sendmail.
check sendmail documentation.
The easy way is to generate a sendmail.cf using m4 if you have the sendmail
m4 files. On BSD this is in /usr/share/sendmail/cf. On other systems,
you'll probably
need to install them (or just unpack them from a sendmail source distrib).
in this
directory, read the README file and then grep "MASQUERADE_AS" in the files
that are in the subdir domain/ (or anywhere else).
>b) use my internal mail server
sendmail determines the server by checking the destination address of the mail.
By default, it will lookup the MX of the destination domain using DNS.
If this is not ok for you, either configure DNS to do what you want or
configure sendmail to use a specific server for a specif domain using the
mailertable feature.
To be precise, when it needs to send a message to [EMAIL PROTECTED], it will by
default
nslookup the MX for jiffi.nl. For most people, this specifies a public
host/address,
so you'll get a problem (I guess that's what you're facing). so just
configure the
mailertable (should be the file /etc/mail/mailertable but that may depend
on your OS.
so do a "grep mailertable /etc/sendmail.cf or /etc/mail/sendmail.cf). if
you add:
.jiffi.nl smtp:[10.1.2.3]
then mail sent to the domain jiffi.nl will be sent to the host 10.1.2.3
using SMTP.
cheers,
mouss
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]