Has anyone gotten exim subaddressing to work?

norelidd

Well-Known Member
Jan 15, 2007
173
1
168
One feature of many MTAs these days is subaddressing. Meaning you could have email sent to [email protected] and it would go to the "subaddress" folder in username's email folder.

Such functionality is not built into cpanel/whm, but it can be added. I was wondering is anyone has.

If there's enough support, this could be a great feature to add to cpanel. gmail has this feature and it's been very nice to be able to sign up for mailing lists with [email protected] and have all of it filtered into its own folder automatically.

Here are some links on the subject matter:
http://www.ii.com/internet/messaging/imap/isps/#subaddressing
http://www.musc.edu/infoservices/email/imap/advanced.html
http://www.faqs.org/faqs/mail/addressing/

Not knowing much about the bugzilla system myself, could someone make a feature request if this gets enough positive feedback?
 

norelidd

Well-Known Member
Jan 15, 2007
173
1
168
Apparently, it's very easy to implement subaddressing in exim. All that needs to be done is to enable it, and then set up .forward filters to sort them out.

7. With exim, how?

Exim is a MTA.

_Dom Mitchell <[email protected]> provides this method._

First, you must find the directors section of the exim
configuration file. In it, you will find a director like this:
(it's from the default configuration file, most people should have
it)


userforward:
no_verify,
driver = forwardfile;
check_ancestor,
file = .forward,
# filter

You must then change it to look like this: (look in the exim manual
for details)


userforward:
no_verify,
suffix = "-*",
suffix_optional,
driver = forwardfile;
check_ancestor,
file = .forward,
filter

This will enable username-extension for any value of extension. But
it will still get dropped into your default mailbox. To do more
with this, you can use exim's built in filtering. You must create a
~/.forward file with the following first line:


# Exim filter

And you can then use rules like the following to save mail into
different mailboxes:


if $local_part_suffix is "-foo"
then
save $home/Mail/foo-folder
elif $local_part_suffix is "-bar"
then
pipe "/usr/local/mh/lib/rcvstore +bar"
endif
How would one make a wilcard .forward to automatically make folders and sort based on the subaddress? Users would be loathe to create an new imap folder and .forward rule for every subaddress they want, so the rule should automatically create folders for new subaddresses it finds.