postfix queues problem? SOLVED
Brian Parish
clicknow at SWIFTDSL.COM.AU
Sat May 22 17:08:05 IST 2004
On Sun, 2004-05-23 at 01:05, Julian Field wrote:
> At 16:02 22/05/2004, you wrote:
> >On Sat, 2004-05-22 at 23:30, Julian Field wrote:
> > > At 10:03 22/05/2004, you wrote:
> > > >On Sat, 2004-05-22 at 18:09, Drew Marshall wrote:
> > > > > Brian Parish wrote:
> > > > >
> > > > > >For some reason the install script did not set up the second postfix
> > > > > >instance, so I followed the info at:
> > > > > >
> > > > > >http://wiki.linuxquestions.org/wiki/Using_MailScanner/Postfix/SpamA
> > ssas
> > > > sin/ClamAV_in_Gentoo_Linux#Configuring_two_versions_of_postfix
> > > > > >
> > > > > >and did the following:
> > > > > >
> > > > > >cp -rp /etc/postfix /etc/postfix.in
> > > > > >
> > > > > >Edited /etc/postfix.in/main.cf and added a line at the top that says:
> > > > > >
> > > > > >defer_transports = smtp local virtual relay
> > > > > >
> > > > > >In the same file, changed:
> > > > > >queue_directory = /var/spool/postfix
> > > > > >to
> > > > > >queue_directory = /var/spool/postfix.in
> > > > > >
> > > > > >cp -rp /var/spool/postfix /var/spool/postfix.in
> > > > > >
> > > > > >Edited /etc/postfix/master.cf and commented out the following line:
> > > > > >smtp inet n - y - - smtpd
> > > > > >
> > > > > >chown postfix.postfix /var/spool/MailScanner/incoming
> > > > > >chown postfix.postfix /var/spool/MailScanner/quarantine
> > > > > >
> > > > > >service MailScanner start
> > > > > >
> > > > > >now says that it starts the two postfix queues, but in
> > > > > >/var/log/mail/info I get over and over:
> > > > > >
> > > > > >MailScanner[nnn]: MailScanner E-Mail Virus Scanner version 4.30.3
> > > > > >starting...
> > > > > >
> > > > > >I see MailScanner <defunct> processes and no mail is processed.
> > > > > >
> > > > > >
> > > > > >
> > > > > Check the 'run as user' in MailScanner.conf. Make sure it's postfix and
> > > > > like wise the 'run as group' should as be postfix. As Postfix won't
> > > > > allow anything to do with root near it's queues.
> > > > >
> > > > > Drew
> > > > >
> > > >Thanks Drew,
> > > >
> > > >Those lines were set at null. i.e. run as user =
> > > >
> > > >So I fixed those, but still no cigar. Incoming mail is not scanned and
> > > >not passed on to the outgoing queue and "MailScanner starting" messages
> > > >accumulate in the info log.
> > >
> > > Set "Debug = yes" in MailScanner.conf, then kill your MailScanner
> > > processes, then "check_mailscanner" and see if it prints any errors.
> > > --
> > > Julian Field
> >
> >No - looks clean. Tried starting the postfix processes individually as
> >suggested by Drew - that generates no errors either. But no mail is
> >processed. I can see it coming in and being queued, but it gets no
> >further. This is starting to get serious as I now have e-mail somewhere
> >in between queues and don't know what it is or how to get it out.
> >
> >Any other suggestions very welcome!
>
> If you can mail me (off-list) the IP address, login details and root
> password, I will log on and take a look for you. Might be something simple.
> --
> Julian Field
Julian has fixed me up - many thanks!
I had forgotten to set the "Incoming Queue Dir" and
"Outgoing Queue Dir" to the values needed for Postfix.
Julian also found that it appears that Wietse (who wrote Postfix) has
added a sample mail filter setup at the end of the master.cf file, so
that the installation instructions are not complete any more. He had to
comment out the filter from /etc/postfix.in/master.cf before he could
get the incoming and outgoing Postfix processes to start.
thanks again
Brian
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list