LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-21-2009, 06:50 AM   #1
aduntoredas
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
postfix forwarding mail with size less than


Hello all,

I would like to find a solution to the following problem: On my primary MX server, I have postfix installed with a bunch of local accounts that receive mail into maildirs. The mail server is also running Courier IMAP, and mail is read by our employees via Thunderbird. I have different redirections for different accounts in my alias file. I would like to forward, for one account, only the mail that is less than a given size. Imagine I would like to have a copy of my INBOX on gmail or yahoo, but don't want the e-mails with attachments or large in size. I would also like to forward all my e-mails to a secondary server in my network to test different spam filter configurations on the secondary server. Imagine I receive hundreds of e-mails with pretty large attachments, so my primary MX server would go on overtime forwarding the large mail to the secondary server. That's just what I am trying to avoid. Any suggestions?

With respect,
crc
 
Old 04-22-2009, 05:41 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You can use maildrop to do that http://www.courier-mta.org/maildrop/documentation.html
 
Old 04-22-2009, 08:21 AM   #3
aduntoredas
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
maildrop use

I can use maildrop to retrieve files from pri MX to the test server, however, I cannot use maildrop with what I wanted most: delivering only the small mail to a google or yahoo account. Any other ideas?
 
Old 04-22-2009, 08:25 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Yes you can use maildrop for that, if you cared read the documentation i pointed you to, you would have seen that you can write a maildrop filter to redirect messages (to a yahoo or google account) based on the size of the message.
 
Old 04-22-2009, 08:35 AM   #5
aduntoredas
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry, you are right. I'm gonna try this in the week-end, when nobody's working Thank you.
 
  


Reply

Tags
forward, mail, postfix


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
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
postfix and mail forwarding ? lhrt Linux - Software 12 07-02-2007 06:25 AM
Forwarding incoming mail (postfix) herc Linux - Software 3 03-09-2007 04:43 PM
Postfix mail forwarding loop lacerto Linux - Networking 1 06-01-2005 06:07 PM
Forwarding mail through Postfix Phaethar Linux - Networking 0 03-01-2004 08:00 AM


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