hellkvist.org Forum Index hellkvist.org
Discussions about the free software on hellkvist.org
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

postfix & procmail tutorial

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Fri Apr 09, 2004 6:55 pm    Post subject: postfix & procmail tutorial Reply with quote

I figured out how to use postfix with procmail , in order to setup the recieving of MMS e-mails for your peffisaur installation,

-----

Postfix uses its own internal local mail delivery agent by default. However, you can easily configure it to use Procmail instead, either globally or on a per-user basis.


Using Procmail Globally

The easiest way to use procmail as your delivery agent is to add the following line to your /etc/postfix/main.cf:


mailbox_command = /usr/bin/procmail


You should also verify that mail for the root user is forwarded to a user account. For example, to forward all root mail to "bree" you'd use:


# echo 'root: bree' >> /etc/aliases


Finally, rebuild the aliases database and reload postfix:


# newaliases

# postfix reload


That's it. Now procmail is in use for all local users.


---------------

Using Procmail for Specific User Accounts

If you prefer that only certain users get Procmail for their local delivery agent, or if you are not the Postfix administrator, then you can set up .forward files to launch Procmail for specific users. All you need to do is create a file called .forward in your home directory that looks like this:


"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #username"


Substitute "username" with your actual username and you're all set. And note that the quotes do belong in the file, they are not just there for this Web page.

If you are the administrator and want to enable Procmail for a specific user, you can create their forward file for them. Just make sure to chown the file appropriately when done.


there are nice articles about both postfix and procmail here:

http://www.securityfocus.com/infocus/1593

hope that helps![/url]
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Tue Apr 13, 2004 8:43 am    Post subject: Reply with quote

Great! Thanks for sharing!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group