Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Sep 2003 23:29:07 +0200
From:      Martin <nakal@web.de>
To:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Need help with sendmail, smart host and genericstable
Message-ID:  <1062451746.564.29.camel@klotz.local>

next in thread | raw e-mail | index | archive | help

Hi,

I have been playing a few hours with sendmail settings, but I failed to
configure it correctly. I want to explain what I want to do. Perhaps
sendmail is the wrong tool for this.

I want to send mail from /usr/bin/mail, emacs, vi etc and forward it 
to my provider. That means, the local "From:" address and other 
headers need to be mapped to my external mail address. It is not 
enough to just rewrite the host name. The user name is also different.

I have read several documents now. The FreeBSD handbook (contains
errors with dialup configurations btw), the freebsddiary, an
explanation directly from sendmail.org and few from some universities.
I have been searching on google, but the combination of smart host
and genericstable seems very unusual.

Nothing works so far. I can see that SMART_HOST setting works, because
sendmail is always giving me MAILER-DAEMON-mails containing chat-logs 
with the external SMTP server. But the From-Line was not translated
according to my settings in /etc/mail/genericstable (yes, it contains
tabs and not spaces). GENERICS_DOMAIN_FILE is correct, too, in my
opinion.

When I remove the SMART_HOST setting. The From-lines are translated
correctly, but the mail will get bounced of course, because I'm
dialup.

The FreeBSD handbook does not mention genericstable and how it works
and if it works. I cannot see what is wrong and sendmail -bt shows
that it does not translate addresses.

Martin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1062451746.564.29.camel>