Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-2009, 08:02 AM
Starter Member
 
Posts: 2
Smile Extract Attachment to samba folder

Hi , I use this trick to move attachment from email with procmail and metamail .
It works fine ... If some one want to check ...

I mod. the master.cf file into:

smtp inet n - n - - smtpd
-o content_filter=filter

and before amavis conf I add:

filter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/pro
cmail -Y -m /etc/procmailrcs/master.rc ${sender} ${recipient}
I save and exit.
I have installed both procmail and metamail from apt-get install ( I use ubuntu 8.0.4).
I had create a file inside a directory /etc/procmailrcs/master.rc :

SHELL=/bin/sh
MAILDIR=/usr/local/virtual/
DATE = `date +%Y`
METAMAIL_TMPDIR=/home/fax/
KEYIGNHEADS=Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Content-Disposition:Content-Id
DROPPRIVS=YES
LINEBUF=32768
#SENDMAILFLAGS="-oi"
DROPPRIVS=yes
LOGFILE=/var/log/procmail.log
VERBOSE=yes

FROM="<$1>"
SHIFT=1

:0cbhHB:
* ^from.*@fax.fax
* ^TO.fax@mycompany.com
| /usr/bin/metamail -q -w -x -r

:0
! -f $FROM "$@"


I put this file in read only--: -r-------- 1 root root 451 2009-04-23 16:48 master.rc
I add user filter to /etc/passwd :
filter:*:952:952:filter:/dev/null:/dev/null

I had linked: /opt/zimbra...../sendmail to /usr/sbin/sendmail for sendmail from filter to zimbra .

And when I recive a fax from fax@fax.fax to my user fax@mycompany.com ,
the fax is moved to my /home/fax shared in samba.
If some one have a questions or comment.... Tank you
Reply With Quote
  #2 (permalink)  
Old 07-31-2009, 08:57 AM
New Member
 
Posts: 4
Default

Hi man!
It is usefull for me, i need some like that.
in my company we need extract attachment's whe recive an mail form some_specific_address@somedomain.com to some_user@localdomain.com and pu ti in to a some folder or ftp.
but man i don't underestand you, i will gracefull if you explain more.
Reply With Quote
  #3 (permalink)  
Old 08-01-2009, 12:00 AM
Starter Member
 
Posts: 2
Default

What don't understand ?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.