LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-12-2002, 09:57 AM   #1
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
fetchmail + procmail (?)


Following situation:

There is a so called catch-all-account (all emails for a specific domain are sent into this account no matter where they were sent to). On another server there is fetchmail running and getting those mails ... and should forward those mails to another server then, let's say if you send an email to alpha@beta.com it's sent to that catch-all-account ...


Now the 2nd server should be doing a fetchmail and forward the mail for the domain beta.com to another server BUT should also send it to the user specified in the original message (alpha).


Anybody has a solution? Maybe with procmail or something alike?
 
Old 11-12-2002, 06:18 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,279
Blog Entries: 54

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
Ahhh, procmail... spose it's scripting time. Dunno if this works, if it fails I spose it's in the "To:" addressing, you get the idea to work it out further I hope.

:0
# X-header "X-CC-Original-To" being indication
# we haven't processed this msg yet, tack it on.
* ! ^X-CC-Original-To:
CCTO=| formail -rzx To:
| formail -A "X-CC-Original-To: ${CCTO}"
{
# No send off a copy to the original To: addy
:0c
! ${CCTO}
# Finally file message
:0
$DEFAULT
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
postfix - procmail, fetchmail varun_saa Mandriva 3 09-11-2005 12:53 AM
fetchmail and procmail ryedunn Linux - Newbie 1 10-20-2004 10:37 AM
fetchmail procmail spamassassin VincentB Linux - Software 4 08-24-2004 01:35 PM
procmail and fetchmail configuration anibiswas Linux - Software 7 11-01-2003 06:20 AM
sendmail, procmail, fetchmail manjunja Linux - Software 0 07-10-2003 02:39 AM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration