You are not logged in.
Hi,
I'm setting up opensmtp in order to learn about email systems, forward emails tom@domain1.com to the odd tom@gmail.com account and deliver emails from bob@domain2.com 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 tom@domain1.com are recieved correctly, they are saved to the maildir but not forwarded to tom@gmail.com (actual email names are changed). Any ideas? I'm obviously misunderstanding how the aliases should work.
## MY NEW CONFIG
listen on eth0 port 25 hostname mail.to
listen on eth0 port 587 hostname mail.domain1.com
table aliases {tom@domain1.com=tom@gmail.com}
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"
accept from local for any relay
Last edited by anthillsocial (2015-07-01 19:24:35)
Offline
Do you use any smarthost configuration or the alike?.
And are you on a business class internet connection or consumer?. Could be port 25 that is blocked outbound to reduce spam.. and therefore necessitate smarthost config usage.
Hurricane Electric Certified IPv6 Sage
CPU: Core i7-2600 @ 4.0Ghz | RAM: 16GB (4x4GB) | GFX: AMD Radeon R9 290 4096MB VRAM | HDD: 1x 120GB SATA3 Corsair SSD (~500MB/s RW), 1x SATA2 250GB, 1x SATA2 320GB, 1x 180GB SATA3 Intel SSD
*EDIT* Replaced Nvidia GTX 570 for a AMD Radeon R9 290, and added an extra SSD 180GB
Offline
cheers for that. I'm on a linode server so I should be alright on that front, though I can check easily enough...
Offline
in order to learn about email systems
I strongly recommend you learn (the very popular) exim, rather than (immature) opensmtpd.
Last edited by brebs (2015-07-03 19:05:49)
Offline