Hi I want to migrate from sendmail but I'm a bit confused by the documentation and as I don't have a dummy system to play on I thought I'd ask first rather than thowing (too much) legit mail down the plughole.
I have an vanilla OpenBSD 5.4 system with whichever version of OpenSMTPD comes with that. I have a smarthost: smart.example.net to which I wish to send all outgoing mail I am running on: server.internal.example.net I want to deal with messages for example.net and fakedomain.co.uk I want to relay & deliver messages sent to me from my local net. I want to deliver messages sent from the smart host. No messages should arrive from the "outside world" except from the smart host. I have some local users: [email protected], [email protected], [email protected] I have some virtual users: [email protected], [email protected], [email protected] + all the usual system ones. I have some dead users that I would like to bounce, preferably with custom error messages for some of them: [email protected], [email protected] (like you can in the sendmail access db) Mail sent to fakedomain.co.uk should be delivered to clara Some virtual users want to be delivered to local mailboxes and some want to be forwarded to external addresses xavier -> [email protected] yola -> bob zander -> [email protected] clara would like all mail to local domains that is otherwise unrecognised to be delivered to her. (Actually, ideally, she would like anything matching clara-*@example.net to be delivered to her, but I suspect that wildcarding in aliases is a bit hopeful and I don't get it in sendmail without more effort than I'm prepared to put in) All the local delivery stuff seems obvious enough, id rejection seems obvious though the custom error stuff is missing I think (I thought I'd seen mention of it but it isn't obvious in the man file now I look). I'm much less sure about the forwarding - in sendmail simply adding the line xavier: [email protected] to the aliases file does the trick, but accept from any for domain example.net\ alias <aliases>\ deliver to maildir %(user.directory)/Maildir seems clearly wrong as we don't want to deliver there. So we have to split the forwarding rules from the alias rules? accept from any for domain example.net\ virtual <forward> relay via tls://smart.example.net verify accept from any for domain example.net\ alias <aliases>\ deliver to maildir %(user.directory)/Maildir This looks like it should work as long as a lack of match in <forward> causes the rule to fail - this isn't obvious one way or the other from the man page. Otherwise I guess I need a "recipient" filter - if so can this be the same <forward> table I use for the "virtual" mapping or is that illegal because it has values too? I like the look of opensmtpd a lot, but a few more examples in the man pages or elsewhere with some of the alias & virtual tables populated might make understanding exactly what it can do a lot clearer. Many thanks John Cox -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
