SMTP relay
The solution I'm looking for is an SMTP server that accepts mail from anywhere (with authentication) and allows users to use whatever From: address they want.
I've spent the last hour looking for a way to do this, playing with Postfix, exim, courier, etc., but can't find it. Perhaps I'm just looking in the wrong place.
3 Replies
Courier has support built in for it.
With Postfix you need to use sasl and for exim I have no idea.
Adam
@mohrr:
The solution I'm looking for is an SMTP server that accepts mail from anywhere (with authentication) and allows users to use whatever From: address they want.
I've spent the last hour looking for a way to do this, playing with Postfix, exim, courier, etc., but can't find it. Perhaps I'm just looking in the wrong place.
In exim, to accept relaying, you set the
hostlist relayfromhosts =
line in exim.conf
If you want the address rewritten (sendmail calls this masquerading, I believe), check the
/etc/email-addresses
file.
Gentoo Server Project Wiki
Postfix SASL Authentication and TLS
The first 2 links aren't too gentoo-centric, so if you're on another distro these would still be good references. The 3rd was written for Postfix 1.x, so it's a little dated… but still good stuff there too. Why don't you give these a look and let us know where you're getting stuck.