Plus Addressing in DirectAdmin?

chrisn

Verified User
Joined
Jun 5, 2007
Messages
12
I have found this:

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

here: http://www.faqs.org/faqs/mail/addressing/

Has anyone done this with DA? Or know if this will work? Or even a different way to implement?

Thanks.

Edit: I guess I should say why I want this. I am hoping to do some automated services by email. When a user clicks reply and types a command, I need to know which email they're replying to. By making the reply-to something like this => [email protected], I can tell which email is being referenced. Is this the right way to go about it? Or is there even a better method?
 
Last edited:
Have you searched for other threads on this subject? I think it's been discussed before.

If you try it yourself you'll have to keep DirectAdmin's method for managing logical email accounts; our routers may not be the same as what you'll see in published examples.

We can write a custom exim.conf file; I have no idea how long it will take or how much it will cost because I've never tried it.

Jeff

Jeff
 
Back
Top