Discussion Locked

procmail

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how should I configure .procmailrc file so that I should be able to use one pop account to distribute mails to other users.
My domain is at one of the ISP's I use fetchmail to retrieve the mails from the domain after retrieving I should be able to distribute the mails to the respective users.

3 replies

by kainx (mej

In order to do this, procmail would need to run with sufficient permission to write to the mailbox of any user. It may be better to properly configure an MTA or fetchmail to do the job.

That said, if you get procmail working, rules like this canuse "To:" headers (and similar headers) to direct mail to users' mailboxes:

:0:
* ^TObob@
/var/spool/mail/bob

:0:
* ^TOfred@
/var/spool/mail/fred

...etc.

This discussion is closed to new replies.