PDA

View Full Version : [other] Mail Delivery



wasanzy
November 27th, 2010, 02:44 PM
Hi,

I have in my /home/vpopmail/domains/domain/.qmai-default

| preline procmail -m -p -t /etc/procmailrc
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox


Which the first line is passing the mails to procmail and the second is delivering the mails directly to the recipients.

Now my problem is, I want procmail to takecare of the delivery. But when I remove the second line, and put this in procmail:
DEFAULT= | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

The mails are not being deliver any more, and I don't kow where they been kept.

For example, if I have a rule in procmail like this:
:0H
* ^To.*postmaster@dot.com.gh
/dev/null

which said to delete any message to postmaster@dot.com.gh, I can see the mails are still being delivered.

How can I achive my goal please any one to help?

Regards

Emmanuel

SeijiSensei
November 27th, 2010, 02:46 PM
Individual users' procmail rules usually live in $HOME/.procmailrc. Try putting it in there.

If you want to create a global rule, create a file /etc/procmailrc (note no initial dot) and put the rule there.