This is a discussion on Re: [courier-users] Source address filtering with courier? within the Courier-Imap forums, part of the Mail Servers and Related category; Quoting Milan Obuch <milan@dino.sk>: > Did someone something like this already? > I need mails received ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Quoting Milan Obuch <milan@dino.sk>:
> Did someone something like this already? > I need mails received by courier server from address address@domain.sk be > stored into maildir created for this purpose. It does not matter whom is it > addressed to. > Any idea? Milan, After rereading what I sent, I thought that the following might be even better for what you may be looking for. Taken from: # man makealiases VIRTUAL DOMAINS The following special syntax implements a virtual domain. A virtual domain redirects all mail for an entire domain to one user: @domain: user This special entry results in any recipient address of the form foo@domain to be rewritten as user-foo@me, where me is the hostname of the machine, which we expect to be a local domain. The following examples use the alias entry "@example.com: john", and "domain.com" is in the control/me file. The address "postmaster@exam- ple.com" becomes "john-postmaster@domain.com", and "sales-info@exam- ple.com" becomes "john-sales-info@domain.com. The intended behavior is to use an actual account named john. As a result of the virtual domain address rewriting, delivery instructions for postmaster@example.com can now be specified by john's $HOME/.courier-postmaster file, and delivery instructions for sales- info@example.com may be specified by $HOME/.courier-sales-info. john's $HOME/.courier-default may be used to specify delivery instructions for any other address in the example.com domain, which does not have an explicit .courier file. If the alias entry was "@example.com: john-example", the corresponding files in john's $HOME directory are .courier-example-postmaster, .courier-example-sales-info, and .courier-example-default. See dot- courier(5) for more information on .courier files. ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |