Reply-To: 
Hi

Recently I posted about smail being able to deliver mail via smtp to remote
domains but not to users on my own domain unless they existed on the box smail
was running on. Basically I wanted mail for these users to be delivered to the
company mail server.

Several people have offered solutions using smartuser or smartrelay but for
once I have come up with a simple solution myself so incase anyone else has
the same problem here it is.

In /etc/smail/config as setup by debian there is a line like this

hostnames=hostname.domain:domain

eg

hostname=workstation1.somecompany.com:somecompany.com

change it to

hostname=hostname.domain.com

eg

hostname=workstation1.somecompany.com

Now it should work properly and hand off all mail for users not on
workstation1 to whatever dns turns up as an mx record dor the domain.

If anyone has any comments about any negative effects of this solution please
mail me.

Also I really think that this problem should be in a Debian FAQ (not
necesarly with my solution - I am no mail expert) as it is a really common
config. The solution using sendmail is in the sendmail FAQ and RedHats
installation manual but its been a pain to sort with Smail as there seems to
be very little documentation for Smail (possibly I just haven't found it yet)

Pat

Reply via email to