Discussion:
pfSense virtualized with mailscanner doesn't run
Jorge Barosa
2014-09-15 09:11:33 UTC
Permalink
Hello,
I'm a new in your list, can someone please help me?
I've got an pfSense in a virtulized system (vmWare vSphere Hypervisor 5.5 ESXi), every thing works just fine except the mailscanner!! it gives this errors:
mailscanner: Process did not exit cleanly, returned 2 with signal 0root: /usr/pbi/mailscanner-amd64/etc/rc.d/mailscanner: WARNING: failed to start mailscanner
Can someone giv me an hint ?
best regards,Jorge Barosa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/2300d12e/attachment.html
Peter Farrow
2014-09-15 09:34:06 UTC
Permalink
A little more detail is required here.

check /var/log/messages, /var/log/maillog

and see what is reported.



On 15/09/2014 10:11, Jorge Barosa wrote:
> Hello,
>
> I'm a new in your list, can someone please help me?
>
> I've got an pfSense in a virtulized system (vmWare vSphere Hypervisor
> 5.5 ESXi), every thing works just fine except the mailscanner!! it
> gives this errors:
>
> mailscanner: Process did not exit cleanly, returned 2 with signal 0
> root: /usr/pbi/mailscanner-amd64/etc/rc.d/mailscanner: WARNING: failed
> to start mailscanner
>
> Can someone giv me an hint ?
>
> best regards,
> Jorge Barosa
>
>
> --
> This message has been scanned for viruses and
> dangerous content by the *Togethia MailScanner*
> <http://www.togethia.net/>, and is
> believed to be clean.
> Scanner:local
>
>
>
> --
> horizontal ruler
>
> Peter Farrow
> avatar
> ______________________
> Home: 01249 654183
> Fax: 01249 461 548
> Mobile: 07799605617
> Skype: peter_farrow
> Web: www.peterfarrow.com <http://www.peterfarrow.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/0b7c9f3f/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: orange_spacer.gif
Type: image/gif
Size: 57 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/0b7c9f3f/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avatar.gif
Type: image/gif
Size: 8198 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/0b7c9f3f/attachment-0001.gif
Arjan Melein
2014-09-15 10:10:03 UTC
Permalink
Also try a 'MailScanner --lint --debug' and see what that says. It might just be the perl issue.



>>> Op 15-9-2014 om 11:34 is door Peter Farrow <peter at farrows.org> geschreven:
> A little more detail is required here.
>
> check /var/log/messages, /var/log/maillog
>
> and see what is reported.
>
>
>
> On 15/09/2014 10:11, Jorge Barosa wrote:
>> Hello,
>>
>> I'm a new in your list, can someone please help me?
>>
>> I've got an pfSense in a virtulized system (vmWare vSphere Hypervisor
>> 5.5 ESXi), every thing works just fine except the mailscanner!! it
>> gives this errors:
>>
>> mailscanner: Process did not exit cleanly, returned 2 with signal 0
>> root: /usr/pbi/mailscanner-amd64/etc/rc.d/mailscanner: WARNING: failed
>> to start mailscanner
>>
>> Can someone giv me an hint ?
>>
>> best regards,
>> Jorge Barosa
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by the *Togethia MailScanner*
>> <http://www.togethia.net/>, and is
>> believed to be clean.
>> Scanner:local
>>
>>
>>
>> --
>> horizontal ruler
>>
>> Peter Farrow
>> avatar
>> ______________________
>> Home: 01249 654183
>> Fax: 01249 461 548
>> Mobile: 07799605617
>> Skype: peter_farrow
>> Web: www.peterfarrow.com <http://www.peterfarrow.com>
>>
Jorge Barosa
2014-09-15 11:17:57 UTC
Permalink
Hi,
Thanks for your reply:
Here is the respose for 'MailScanner --lint --debug':
# MailScanner --lint --debugTrying to setlogsock(unix)
Reading configuration file /usr/pbi/mailscanner-amd64/etc/MailScanner/MailScanner.confReading configuration file /usr/pbi/mailscanner-amd64/etc/MailScanner/conf.d/READMECould not read executable /usr/local/sbin/sendmail at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2897Error in line 33, file "/usr/local/sbin/sendmail" for sendmail does not exist (or can not be read) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3151Could not read directory /var/spool/postfix/incoming at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2874Error in configuration file line 27, directory /var/spool/postfix/incoming for outqueuedir does not exist (or is not readable) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3238File containing list of incoming queue dirs (/var/spool/postfix/hold) does not exist at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 1819
Checking version numbers...Version number in MailScanner.conf (4.84.6) is correct.
Your envelope_sender_header in spam.assassin.prefs.conf is correct.Can't use string ("/var/spool/mqueue.in") as an ARRAY ref while "strict refs" in use at /usr/pbi/mailscanner-amd64/sbin/MailScanner line 536.

In pfSense I don't have any more logs in /var/log/messages, /var/log/maillog
Thank you

> Date: Mon, 15 Sep 2014 12:10:03 +0200
> From: Amelein at dantumadiel.eu
> To: mailscanner at lists.mailscanner.info
> Subject: Betr.: Re: pfSense virtualized with mailscanner doesn't run
>
> Also try a 'MailScanner --lint --debug' and see what that says. It might just be the perl issue.
>
>
>
> >>> Op 15-9-2014 om 11:34 is door Peter Farrow <peter at farrows.org> geschreven:
> > A little more detail is required here.
> >
> > check /var/log/messages, /var/log/maillog
> >
> > and see what is reported.
> >
> >
> >
> > On 15/09/2014 10:11, Jorge Barosa wrote:
> >> Hello,
> >>
> >> I'm a new in your list, can someone please help me?
> >>
> >> I've got an pfSense in a virtulized system (vmWare vSphere Hypervisor
> >> 5.5 ESXi), every thing works just fine except the mailscanner!! it
> >> gives this errors:
> >>
> >> mailscanner: Process did not exit cleanly, returned 2 with signal 0
> >> root: /usr/pbi/mailscanner-amd64/etc/rc.d/mailscanner: WARNING: failed
> >> to start mailscanner
> >>
> >> Can someone giv me an hint ?
> >>
> >> best regards,
> >> Jorge Barosa
> >>
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by the *Togethia MailScanner*
> >> <http://www.togethia.net/>, and is
> >> believed to be clean.
> >> Scanner:local
> >>
> >>
> >>
> >> --
> >> horizontal ruler
> >>
> >> Peter Farrow
> >> avatar
> >> ______________________
> >> Home: 01249 654183
> >> Fax: 01249 461 548
> >> Mobile: 07799605617
> >> Skype: peter_farrow
> >> Web: www.peterfarrow.com <http://www.peterfarrow.com>
> >>
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/39554008/attachment.html
Joolee
2014-09-15 12:09:28 UTC
Permalink
Are you sure postfix is even installed on the pfSense system? Most of the
logs seem to indicate it is'nt. If you're using another MTA, you should
configure Mailscanner accordingly.



On 15 September 2014 13:17, Jorge Barosa <jorge.barosa at outlook.com> wrote:

> Hi,
>
> Thanks for your reply:
>
> Here is the respose for 'MailScanner --lint --debug':
>
> # MailScanner --lint --debug
> Trying to setlogsock(unix)
>
> Reading configuration file
> /usr/pbi/mailscanner-amd64/etc/MailScanner/MailScanner.conf
> Reading configuration file
> /usr/pbi/mailscanner-amd64/etc/MailScanner/conf.d/README
> Could not read executable /usr/local/sbin/sendmail at
> /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2897
> Error in line 33, file "/usr/local/sbin/sendmail" for sendmail does not
> exist (or can not be read) at
> /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3151
> Could not read directory /var/spool/postfix/incoming at
> /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2874
> Error in configuration file line 27, directory /var/spool/postfix/incoming
> for outqueuedir does not exist (or is not readable) at
> /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3238
> File containing list of incoming queue dirs (/var/spool/postfix/hold) does
> not exist at
> /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 1819
>
> Checking version numbers...
> Version number in MailScanner.conf (4.84.6) is correct.
>
> Your envelope_sender_header in spam.assassin.prefs.conf is correct.
> Can't use string ("/var/spool/mqueue.in") as an ARRAY ref while "strict
> refs" in use at /usr/pbi/mailscanner-amd64/sbin/MailScanner line 536.
>
>
>
> In pfSense I don't have any more logs in
> /var/log/messages, /var/log/maillog
>
> Thank you
>
>
> > Date: Mon, 15 Sep 2014 12:10:03 +0200
> > From: Amelein at dantumadiel.eu
> > To: mailscanner at lists.mailscanner.info
> > Subject: Betr.: Re: pfSense virtualized with mailscanner doesn't run
>
> >
> > Also try a 'MailScanner --lint --debug' and see what that says. It might
> just be the perl issue.
> >
> >
> >
> > >>> Op 15-9-2014 om 11:34 is door Peter Farrow <peter at farrows.org>
> geschreven:
> > > A little more detail is required here.
> > >
> > > check /var/log/messages, /var/log/maillog
> > >
> > > and see what is reported.
> > >
> > >
> > >
> > > On 15/09/2014 10:11, Jorge Barosa wrote:
> > >> Hello,
> > >>
> > >> I'm a new in your list, can someone please help me?
> > >>
> > >> I've got an pfSense in a virtulized system (vmWare vSphere Hypervisor
> > >> 5.5 ESXi), every thing works just fine except the mailscanner!! it
> > >> gives this errors:
> > >>
> > >> mailscanner: Process did not exit cleanly, returned 2 with signal 0
> > >> root: /usr/pbi/mailscanner-amd64/etc/rc.d/mailscanner: WARNING:
> failed
> > >> to start mailscanner
> > >>
> > >> Can someone giv me an hint ?
> > >>
> > >> best regards,
> > >> Jorge Barosa
> > >>
> > >>
> > >> --
> > >> This message has been scanned for viruses and
> > >> dangerous content by the *Togethia MailScanner*
> > >> <http://www.togethia.net/>, and is
> > >> believed to be clean.
> > >> Scanner:local
> > >>
> > >>
> > >>
> > >> --
> > >> horizontal ruler
> > >>
> > >> Peter Farrow
> > >> avatar
> > >> ______________________
> > >> Home: 01249 654183
> > >> Fax: 01249 461 548
> > >> Mobile: 07799605617
> > >> Skype: peter_farrow
> > >> Web: www.peterfarrow.com <http://www.peterfarrow.com>
> > >>
> >
> >
> >
> >
> > --
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >
> > Before posting, read http://wiki.mailscanner.info/posting
> >
> > Support MailScanner development - buy the book off the website!
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/f533e61e/attachment.html
Arjan Melein
2014-09-15 12:31:01 UTC
Permalink
Well here you go:

Could not read executable /usr/local/sbin/sendmail at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2897
Error in line 33, file "/usr/local/sbin/sendmail" for sendmail does not exist (or can not be read) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3151
Could not read directory /var/spool/postfix/incoming at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2874
Error in configuration file line 27, directory /var/spool/postfix/incoming for outqueuedir does not exist (or is not readable) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3238
File containing list of incoming queue dirs (/var/spool/postfix/hold) does not exist at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 1819


What I can think of from the top of my head:
- No MTA installed ? (somewhat unlikely)
- Wrong MTA configured in MailScanner.conf ?
- Wrong MTA path configured in MailScanner.conf ?
- Running MS as a different user then the MTA ? This would lead to permission problems.

If you check your MailScanner.conf the MTA settings are at the start of the file. (for me anyways, I'm using the fully commented version)
You might have to customize the default settings to where pfense has its files.
Jorge Barosa
2014-09-15 15:54:10 UTC
Permalink
Thanks for your help,
I needed to instal the package "postfix" before "MailScanner", didn't find that answer in any forum.
Thank you,
Best regards,Jorge Barosa

> Date: Mon, 15 Sep 2014 14:31:01 +0200
> From: Amelein at dantumadiel.eu
> To: mailscanner at lists.mailscanner.info
> Subject: RE: Betr.: Re: pfSense virtualized with mailscanner doesn't run
>
> Well here you go:
>
> Could not read executable /usr/local/sbin/sendmail at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2897
> Error in line 33, file "/usr/local/sbin/sendmail" for sendmail does not exist (or can not be read) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3151
> Could not read directory /var/spool/postfix/incoming at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2874
> Error in configuration file line 27, directory /var/spool/postfix/incoming for outqueuedir does not exist (or is not readable) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3238
> File containing list of incoming queue dirs (/var/spool/postfix/hold) does not exist at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 1819
>
>
> What I can think of from the top of my head:
> - No MTA installed ? (somewhat unlikely)
> - Wrong MTA configured in MailScanner.conf ?
> - Wrong MTA path configured in MailScanner.conf ?
> - Running MS as a different user then the MTA ? This would lead to permission problems.
>
> If you check your MailScanner.conf the MTA settings are at the start of the file. (for me anyways, I'm using the fully commented version)
> You might have to customize the default settings to where pfense has its files.
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140915/9a9afe6b/attachment.html
Loading...