On 12 August 2015 at 06:17, Harald Linden <[email protected]> wrote: > Hi, > > I'm a bit stumped. I'm hosting a webserver with various domains and I > am using an external mailservice for one of them (let's say > domain1.tld). I'd like to catch all mails to the other ones > (domain2.tld, domain3.tld etc.) and forward it to my externally hosted > address [email protected]. So my idea was: > > /etc/smtpd.conf: > listen on all > table domains file:/etc/mail/domains > table lists file:/etc/mail/lists > accept from any for domain <domains> virtual <lists> forward-only > > > /etc/mail/aliases: > @ [email protected] > > /etc/mail/domains: > domain2.tld > domain3.tld > > Now, while I think that this should work, it doesn't work: > > "RCPT TO:<[email protected]>" => 550 Invalid recipient > > And I do not have the faintest idea why. Can someone poke me in the > right direction?
As per smtpd.conf(5): forward-onlyMail is accepted for local recipients ONLY if it is redirected to an external address via an alias or a ~/.forward. Example: accept for domain opensmtpd.org forward-only -- So to me, it doesn't look like you have a valid alias set up (no actual explicit webmaster alias). Alias tables are separated by : As per webmaster: [email protected] In OpenBSD 5.7 I achieve the above but just have it deliver to mbox (though never gets delivered there, the address restamping rolls it around and ships it on). Forward-only looks like a good feature if used correctly, I'll probably have a use or two for it come OpenBSD 5.8. References: aliases(5) smtpd.conf(5) table(5) -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
