LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-16-2004, 04:04 AM   #1
Cadmium
Member
 
Registered: May 2004
Posts: 31

Rep: Reputation: 15
Procmail: forwarding mail to remote mail account


Hi!

I'm trying to tweak my procmail configuration to allow it forwarding my emails to another email account I have (a free email account accessible via a Web interface).

I really want to make sure that my hack won't create a mail loop (I already happened to me once with a simple .forward...).

The rules I wrote are as follows:

:0c
* $^To:.*\<$\LOGNAME\>
* !^FROM_DAEMON
* !^X-Loop: myemailaddress@a.b.com
* !^FROM_myforwardaddress@c.d.com
* !^FROM_myemailaddress@a.b.com
{ LOG = "Mail message forwarded to myforwardaddress@c.d.com" }
| formail -k -X "From:" -X "Subject:" \
-I "To: myforwardaddress@c.d.com" -X "To:" \
-I "X-Loop: myemailaddress@a.b.com" -X "X-Loop:" \
| $SENDMAIL $SENDMAILFLAGS -t

Basically, I'd like my email sent to my regular address (myemailaddress@a.b.com) to be forwarded to my web account (myforwardaddress@c.d.com).

My LOG line does not seem to work correctly, I always get the line in the log.
Also, if the message is not forwarded to myforwardaddress@c.d.com, I get two messages in mail mailbox: the original message and the copy.

What should I change to make my forward work properly?
 
Old 05-16-2006, 06:17 AM   #2
praveenbtt2
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Need Distribution List with sendmail

Hello sir/madam,

I need to configure an ID which works like Distribution List in MS-Exchange by using Send mail.

i.e I need to configure an ID so that if any mails sent to that perticular ID will be distributed to some number of ID's, by using sendmail.

If possible please send ur suggestions to praveen_b744@yahoo.co.in.

Thank you.

Regards,
Praveen.
 
Old 01-14-2010, 01:05 PM   #3
ngwasuma
Member
 
Registered: Jan 2005
Distribution: Fedora11
Posts: 45

Rep: Reputation: 16
Quote:
Originally Posted by praveenbtt2 View Post
Hello sir/madam,

I need to configure an ID which works like Distribution List in MS-Exchange by using Send mail.

i.e I need to configure an ID so that if any mails sent to that perticular ID will be distributed to some number of ID's, by using sendmail.

If possible please send ur suggestions to praveen_b744@yahoo.co.in.

Thank you.

Regards,
Praveen.

In a smaller scale, you can use aliases in /etc/aliases.

Enter entry like
Code:
mylist: \address1@buguta.com,address3@example.com,address2@1.example.com
NB: Do not forget to run the command "newaliases" after save the /etc/aliases file.


__________________________________________________________
Buy a brand new domain name at: http://www.buguta.com

Last edited by ngwasuma; 01-14-2010 at 01:08 PM. Reason: 2 address2's
 
  


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
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
How to have limited mail on a linux server that support unlimited e-mail account mmh Linux - General 3 03-15-2006 06:52 AM
procmail mail sorting FLOODS Linux - Networking 1 11-26-2004 09:12 PM
Trying to configure e-mail account to my hotmail e-mail sjia Linux - Newbie 10 02-04-2004 11:12 PM
? fowarding mail using procmail ? norman Linux - Networking 1 11-18-2002 11:11 AM

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

All times are GMT -5. The time now is 01:28 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