LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2007, 06:07 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
procmail questions


1 - I want to configure procmail to forward all the mail with the To header from emacs@mailserver.com to /home/user/Mail/INBOX/emacs/ directory. How can i do that?

2 - By default, my emails is in /var/mail/user/INBOX. How can apply procmail rules to do the question above?

3 - Is is possible to have, for each mail be in a unique file, instead of all the mail in one INBOX file? How can i do that?

4 - How can i set different email accounts to different files?

Thanks,
Pedro
 
Old 05-06-2007, 08:50 AM   #2
slackbat
Member
 
Registered: Dec 2005
Location: Mid-West-Wales
Distribution: Slackware 14.2_64_multilib - Salix 14.2 - devuan
Posts: 138

Rep: Reputation: 27
Quote:
1 - I want to configure procmail to forward all the mail with the To header from emacs@mailserver.com to /home/user/Mail/INBOX/emacs/ directory. How can i do that?
I have a .procmailrc within my home directory. I am not sure that you have this file in your home directory.

At the top of which I have

Code:
MAILDIR=$HOME/mail/
The $HOME is short for my home directory i.e /home/username.

Perhaps if your procmailrc is system wide it would read
Code:
MAILDIR=/home/user/mail/
And within .procmailrc I would try:-

Code:
:0
* ^TO_emacs@mailserver.com
inbox/emacs
Quote:
3 - Is is possible to have, for each mail be in a unique file, instead of all the mail in one INBOX file? How can i do that?
Code:
:0
* ^TO_emacs@mailserver.com
inbox/emacs
The important part is 'inbox/emacs' just needs to be changed to whatever you want. i.e. anotherBox/here.

Quote:
4 - How can i set different email accounts to different files?
Code:
#Accept everything addressed to me
:0
* ^TO_slack@123four.fsnet.co.uk
inbox/
Just have code like this for every account you have - changing the email address for each.

That may do it. Good luck.
 
Old 05-06-2007, 01:30 PM   #3
f_j.nejad
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
hello everybody
how can i set password for the files shared through ports in fc-6
with regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Procmail !!! paul_mat Linux - Networking 0 05-02-2006 07:34 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
Procmail rcstest Red Hat 2 02-09-2005 02:53 AM
Procmail svsalian Linux - Software 0 09-24-2003 08:15 AM
questions about evolution and fetchmail/procmail Pcghost Linux - Software 1 07-08-2003 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration