Results 1 to 3 of 3

Thread: Extract Attachment to samba folder

  1. #1
    jubacca is offline Starter Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    6

    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

  2. #2
    enriluis is offline New Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    6

    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.

  3. #3
    jubacca is offline Starter Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    6

    Default

    What don't understand ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 'Couldn't access Yahoo! Zimbra Desktop server"
    By chirag1 in forum Error Reports
    Replies: 37
    Last Post: 06-12-2011, 05:14 PM
  2. Zimbra + Funambol Sync4j Code
    By KevinH in forum Mobility
    Replies: 563
    Last Post: 01-16-2010, 02:20 AM
  3. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  4. Error when Using Outlook PST Importer
    By chh in forum Zimbra Connector for Outlook
    Replies: 1
    Last Post: 01-19-2009, 05:20 AM
  5. Replies: 3
    Last Post: 08-11-2007, 12:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •