Redhat 7.3 + Postfix 1.1.7-2 + MailScanner-4.26.7-1

Rosaldo Garcia rggarcia at IMGAME.NET
Thu Feb 19 07:48:08 GMT 2004


Hello,

    Currently i have a running Redhat 7.3 , postfix-1.1.7-2 and recently i
just download and installed MailScanner-4.26.7-1.tar.gz and here are the
things ived done.


How to Set Up Postfix for MailScanner Use
        Install Postfix (version 1 or 2) and get it all working.
        Stop Postfix using a command
        postfix stop
        Make sure you have the chroot jail set up in /var/spool/postfix. You
should be able to see "etc", "usr" and "lib" directories inside
/var/spool/postfix). If you haven't got the chroot jail setup already, then
look in the "examples" directory of the Postfix documentation and you will
find a script in there to set up it up for your operating system. If you
can't find that, then see the "Problems or Errors" section further down this
page.
        Copy the postfix configuration files for the incoming Postfix:
        cp -rp /etc/postfix /etc/postfix.in
        Tell the incoming Postfix not to deliver mail: Edit
/etc/postfix.in/main.cf and add a line at the top that says this:
        defer_transports = smtp local virtual relay
        In the same file, look for the definition
        queue_directory = /var/spool/postfix
        and change it to
        queue_directory = /var/spool/postfix.in
        If you have a chroot jail setup in /var/spool/postfix, copy the
postfix spool are to the incoming setup using a command
        cp -rp /var/spool/postfix /var/spool/postfix.in
        Otherwise, just create the new spool directory for the incoming
Postfix using a command
        mkdir /var/spool/postfix.in
        When the incoming Postfix starts up, it will create any missing
files and directories it needs in there.
        Tell the outgoing Postfix not to provide an SMTP service: Edit
/etc/postfix/master.cf and comment out the following line by inserting a "#"
at the start of the line:
                smtp   inet    n       -       y       -       -       smtpd
How to Set up MailScanner for Use with Postfix
In your MailScanner.conf file (probably in /etc/MailScanner or
/opt/MailScanner/etc), there are 5 settings you need to change. They are all
really near the top of the file. The settings are
     Run As User = postfix
     Run As Group = postfix
     Incoming Queue Dir = /var/spool/postfix.in/deferred
     Outgoing Queue Dir = /var/spool/postfix/incoming
     MTA = postfix
If you are using the RedHat RPM distribution, one change will enable all the
Postfix support in the init.d script. Edit /etc/sysconfig/MailScanner and
set
    MTA=postfix
You will need to ensure that the user "postfix" can write to
/var/spool/MailScanner/incoming and /var/spool/MailScanner/quarantine:
    chown postfix.postfix /var/spool/MailScanner/incoming
    chown postfix.postfix /var/spool/MailScanner/quarantine
If you upgrade your copy of MailScanner, unfortunately these directories
will be changed back to being owned by root, so you will have to do those 2
commands again.
Starting It All Running
If on a system installed using the RedHat RPM distribution, please edit
/etc/sysconfig/MailScanner and set it up for your mail system. Then just use
the init.d script to do it all for you:
/etc/rc.d/init.d/MailScanner start
(or on RedHat systems just service MailScanner start) If not using the
RedHat RPM distribution, then
        Start the incoming Postfix
        postfix -c /etc/postfix.in start
        Start the outgoing Postfix
        postfix -c /etc/postfix start
        Start MailScanner
        check_MailScanner




                The thing is when i put an #  on :

                smtp   inet    n       -       y       -       -       smtpd


          I get this error message on my mail client:

  "The TCP/IP connection was unexpectedly terminated by the server.
  (Account:192.168.0.2, SMTP Server:192.168.0.2, Error Number 0x800ccc0f)"





Does this error message ever happened to anyone? Pls help.

Thanks

Rosaldo G. Garcia
Systems Administrator
Intermedia Solutions Inc. (http://www.imgame.net)



More information about the MailScanner mailing list