I keep getting this error when I reload MailScanner. I can't seem to find any where that points to t

John Wilcock john at TRADOC.FR
Tue Feb 8 14:29:14 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

David Curtis wrote:
> I keep getting this error when I reload MailScanner. I can't seem to
> find any where that points to this spot. Have I missed something?
> Reloading MailScanner workers:
>          MailScanner:       [  OK  ]
>     Incoming postfix:       postfix: fatal: open
> /etc/postfix.in/main.cf: No such file or directory
> [  OK  ]
>     Outgoing postfix:       postfix/postfix-script: refreshing the
> Postfix mail system
> [  OK  ]

Yes, that happens on the newer single-postfix MailScanner setup, where
you don't actually have a separate incoming postfix instance.
The Incoming Postfix section of the init script is conditional for
start, stop and restart, but not for reload.

Just add an appropriate if statement, as per the attached patch.

[Julian - it might be good to add this to the distributed version when
you get back from your hols]

John.

--
-- Over 2500 webcams from ski resorts around the world - www.snoweye.com
-- Translate your technical documents and web pages    - www.tradoc.fr

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

    [ Part 2: "Attached Text" ]

--- /etc/init.d/MailScanner.old 2004-06-01 17:15:16.000000000 +0200
+++ /etc/init.d/MailScanner     2004-06-18 10:32:10.000000000 +0200
@@ -350,7 +350,9 @@
        echo
         if [ $MTA = "postfix" ]; then
           echo -n '    Incoming postfix:       '
-          $POSTFIX -c $POSTFIXINCF reload >/dev/null
+          if [ -f $POSTFIXINCF/main.cf ]; then
+            $POSTFIX -c $POSTFIXINCF reload >/dev/null
+          fi
           success
           echo
           echo -n '    Outgoing postfix:       '

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list