Difference between revisions of "sendmail/procmail"
< sendmail
		
		
		
		Jump to navigation
		Jump to search
		 (Created page with "From the [http://www.sendmail.com/sm/open_source/docs/m4/mailers.html mailers documentation]: <blockquote> This is designed to be used in [http://www.sendmail.com/sm/open_sour...")  | 
				 (a link)  | 
				||
| Line 1: | Line 1: | ||
| + | ==Notes==  | ||
From the [http://www.sendmail.com/sm/open_source/docs/m4/mailers.html mailers documentation]:  | From the [http://www.sendmail.com/sm/open_source/docs/m4/mailers.html mailers documentation]:  | ||
<blockquote>  | <blockquote>  | ||
| Line 25: | Line 26: | ||
problem, e.g., a catch-all entry in a [http://www.sendmail.com/sm/open_source/docs/m4/features.html#virtusertable virtusertable].  | problem, e.g., a catch-all entry in a [http://www.sendmail.com/sm/open_source/docs/m4/features.html#virtusertable virtusertable].  | ||
</blockquote>  | </blockquote>  | ||
| + | ==Links==  | ||
| + | * [http://softpanorama.net/Mail/procmail.shtml Invoking procmail from sendmail]  | ||
Revision as of 16:43, 31 March 2013
Notes
From the mailers documentation:
This is designed to be used in mailertables. For example, a common question is "how do I forward all mail for a given domain to a single person?". If you have this mailer defined, you could set up a mailertable reading:
host.com procmail:/etc/procmailrcs/host.comwith the file /etc/procmailrcs/host.com reading:
:0 # forward mail for host.com ! -oi -f $1 person@other.hostThis would arrange for (anything)@host.com to be sent to person@other.host. Within the procmail script, $1 is the name of the sender and $2 is the name of the recipient.
If you use this with FEATURE(`local_procmail'), the FEATURE should be listed first.
Of course there are other ways to solve this particular problem, e.g., a catch-all entry in a virtusertable.