Hi, Apologies for the delayed response - I haven't had a chance to look at this again until now. I ended up copying the arch wiki: https://wiki.archlinux.org/index.php/OpenSMTPD
But I still get the same error (configs/debug below). All works fine when the vusers file contains the following: [email protected] tom Yet when it contains: [email protected] tom, [email protected] Or: [email protected] [email protected] Then I get "smtp-in: Failed command on session 463efaea408f3a7d: "RCPT TO:<[email protected]>" => 550 Invalid recipient" In the debug output. Any ideas why this simple setup might not be working? Tom CONFIG pki domain.tld certificate "/etc/smtpd/tls/smtpd.crt" pki domain.tld key "/etc/smtpd/tls/smtpd.key" table vdoms "/etc/smtpd/vdoms" table vusers "/etc/smtpd/vusers" listen on eth0 hostname domain.tld accept from any for domain <vdoms> virtual <vusers> deliver to maildir "/home/tom/mails" accept from source { localhost 109.237.26.21/24 } for any relay FILE: vdoms tomkeene.com FILE: vusers [email protected] tom, [email protected] OUTPUT FROM: smtpd -dv debug: init ssl-tree info: loading pki information for domain.tld info: OpenSMTPD 5.4.6p1 starting debug: bounce warning after 4h debug: using "fs" queue backend debug: using "ramqueue" scheduler backend debug: using "ram" stat backend info: startup [debug mode] debug: parent_send_config_ruleset: reloading debug: init ssl-tree debug: ca_engine_init: using RSA privsep engine info: loading pki keys for domain.tld debug: parent_send_config: configuring pony process debug: parent_send_config: configuring ca process debug: smtp: listen on IPv6:fe80::f03c:91ff:fe37:4b11 port 25 flags 0x400 pki "" debug: smtp: listen on IPv6:2a01:7e00::f03c:91ff:fe37:4b11 port 25 flags 0x400 pki "" debug: smtp: listen on 109.237.26.21 port 25 flags 0x400 pki "" debug: pony: rsae_init debug: init private ssl-tree debug: pony: rsae_init debug: smtp: will accept at most 2022 clients debug: queue: done loading queue into scheduler debug: smtpd: scanning offline queue... debug: smtpd: offline scanning done debug: smtp: new client on listener: 0x1f40d60 smtp-in: New session 463efaea408f3a7d from host ismyemailworking.com [216.119.104.83] debug: aliases_virtual_get: '[email protected]' resolved to 2 nodes smtp-in: Failed command on session 463efaea408f3a7d: "RCPT TO:<[email protected]>" => 550 Invalid recipient smtp-in: Closing session 463efaea408f3a7d debug: smtp: 0x1f9a210: deleting session: done On Fri, Jul 3, 2015 at 8:15 AM, K. Peter <[email protected]> wrote: > 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] >>> > -- TOM KEENE | THE ANTHILL SOCIAL {Artist, Programmer, Researcher} Researcher: European Research Council project Citizen Sense Department of Sociology Goldsmiths, University of London w. www.theanthillsocial.co.uk w. www.citizensense.net e. [email protected] e. [email protected] t. @anthillsocial m. 07930 573 944 -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
