Sendmail

Discussion in 'HOWTO-Related Questions' started by rashid, Jun 23, 2011.

  1. rashid

    rashid New Member

    Dear All

    I am using sendmail server with dovecot procmail fetchmail. It working fine. I can copy incoming mail but i can,t copy outgoing mail. I want copy out going mail.

    Regards
    Rashid KHan
     
  2. rashid

    rashid New Member

    Dear All
    I have found synonym software. it copy any out going mail.

    http://dv8.ro/Synonym/Synonym/synonym_downloads.html

    1. What is Synonym?

    Synonym is a Milter extension that offers message archiving capabilities. It runs on top of Sendmail via the Milter extension and copies all incoming and outgoing email to a predefined mailbox.
    The rest of the document offers a step-by-step guide to installing Synonym.

    2. Installing Synonym

    2.1 Dependencies
    - Sendmail ( >8.11, older versions may work too, I'm not sure I did not check)
    - Sendmail 'cf' (the configuration file needs to be altered and compiling sendmail.mc relies on this)
    - Sendmail development (the milter headers and libraries)
    - GNU Make

    2.2 Compiling the Synonym source files
    Untar synonym:
    # tar zxvf synonym-x.y.z.tar.gz

    Enter the Synonym directory:
    # cd Synonym

    Compile Synonym
    # make

    2.3 Installing Synonym
    From the synonym directory, do a
    # make install
    This will copy the synonym binary to the /usr/local/bin directory, create the rundir (default /var/run/synonym) and install the service control script (/etc/rc.d/init.d/synonym).

    2.4 Configuring sendmail
    Please make sure to backup your sendmail.cf file prior to this.
    Add the following two lines to your (/etc/mail/ or /etc/)sendmail.mc file:

    define(`_FFR_MILTER', `true')
    INPUT_MAIL_FILTER(`Synonym', `S=local:/var/run/synonym/synonym.sock, T=C:10m;S:1s;R:1s;E:5m')

    Generate the sendmail.cf in the same directory:
    # m4 < sendmail.mc > sendmail.cf

    Restart sendmail.



    # vi /etc/synonym.conf

    <Rules>
    <Rule>
    <Condition>
    <Header>From</Header>
    <Match>[email protected]</Match>
    </Condition>
    <Action>
    <ActionType>Copy</ActionType>
    <Address>[email protected]</Address>
    </Action>
    </Rule>
    </Rules>
     
    Last edited: Jun 24, 2011

Share This Page