On 2015-07-02 14:43, Joerg Jung wrote:
On Thu, Jul 02, 2015 at 09:08:08AM +0100, Tom Keene wrote:
Hi,
I'm setting up opensmtp in order to learn about email systems, forward
emails [email protected] to [email protected] account and deliver emails
from [email protected] to a local maildir. I'm starting with a simple
setup so I can understand the syntax and have the following in my
"/etc/smtpd/smtpd.conf". However while emails sent to [email protected]
are recieved correctly, they are saved to the maildir, but not
forwarded to [email protected] (actual email names are changed). Any
ideas? I'm obviously misunderstanding how the config should work!
Tom
BTW I'm running arch linux...
## MY NEW CONFIG
listen on eth0 port 25 hostname mail.to
listen on eth0 port 587 hostname mail.domain1.com
table aliases {[email protected][email protected]}
accept for local virtual <aliases> deliver to maildir
"/home/tom/mails"
accept from any for domain "domain1.com" alias <aliases> deliver to
domain1.com "/home/tom/mails"
^^^ the two lines above make no sense to me.
I agree. The "virtual <aliases>" seems to be wrong too, because the
tables of "virtual" and "alias" have different formats. It is not clear
to me also, if there should be a copy forwarded or if it should be a
forward only. Using the aliases table (according to the man page) you
maybe can do:
[email protected]:[email protected], maildir:/home/tom/mails
in smtpd.conf:
accept ... for alias <aliases>
An alternative could be the usage of a .forward file.
accept from local for any relay
--
You received this mail because you are subscribed to
[email protected]
To unsubscribe, send a mail to: [email protected]
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]