Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easier (better) way with Postfix' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easier (better) way with Postfix
Authored by: sr105 on Aug 24, '06 08:01:41AM

Instead of setting your From: to company@mydomain.com, use username-company@mydomain.com and set recipient_delimiter to '-' in your postfix main.cf file. When a new mail arrives addressed like that, Postfix tries to see if the user 'username-company' exists and if not, it falls back to the first (previous?) delimiter, '-', and tries just 'username'.

This is a better way of addressing, because it allows multiple users to use the functionality and avoids having to mess with the aliases file or unknown_user setting. The reason I use '-' for a delimiter instead of the default '+' is that a lot of websites don't allow '+' in e-mail address fields, but '-' always works.



[ Reply to This | # ]