Koozali.org: home of the SME Server

Use postfix instead of qmail?

Offline paulgear

  • 3
  • +0/-0
Use postfix instead of qmail?
« on: March 17, 2008, 05:13:00 AM »
Is there any way i can configure my SME server to use postfix instead of qmail?  Qmail's logging is utterly incomprehensible to me, and the troubleshooting tools are unfamiliar.

Alternatively (this option comes in a distant second), can anyone point me to information about:

1. Why SMTP traffic on the LAN is logged in the file with local mail delivery instead of with SMTP activity on the WAN interface, and whether this can be changed.

2. How to get dates & times from the logs in human readable format (even decimal Unix times would be an improvement!).

3. Whether it's possible to get qmail to log to syslog instead of its own log files.  (This would solve both issues above.)

4. How to track a single message from its incoming connection on the LAN to its eventual destination.  Even within one log, the same message id is reused several times, which makes it very difficult to guarantee that we're talking about the same message.
« Last Edit: March 17, 2008, 05:14:49 AM by paulgear »

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Use postfix instead of qmail?
« Reply #1 on: March 17, 2008, 05:41:17 AM »

2. How to get dates & times from the logs in human readable format (even decimal Unix times would be an improvement!).



 cat /var/log/qmail/current | tai64nlocal | less




Regards,
William

IF I give advise.. It's only if it was me....

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Use postfix instead of qmail?
« Reply #2 on: March 17, 2008, 07:35:26 AM »
paulgear

If you read the log files using the server manager View log files panel, they are in "human readable" form.

Look at
qpsmtpd/current
and
qmail/current

Re incorporating Postfix into sme, see
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Official_Description

For some qpsmtpd-utils, see
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/dmay/smeserver/7.x/qpsmtpd-utils/

« Last Edit: March 17, 2008, 07:42:56 AM by RayMitchell »
...

Offline paulgear

  • 3
  • +0/-0
Re: Use postfix instead of qmail?
« Reply #3 on: March 17, 2008, 08:28:26 AM »
If you read the log files using the server manager View log files panel, they are in "human readable" form.

That doesn't help much if you want to watch the logs in real time...   ;-)

Re incorporating Postfix into sme, see
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Official_Description

That doesn't seem to say much about postfix on SME, only qpsmtpd in general.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Use postfix instead of qmail?
« Reply #4 on: March 17, 2008, 10:45:03 AM »
That doesn't help much if you want to watch the logs in real time...   ;-)

Then why not use:

tail -f /var/log/qmail/current | tai64nlocal

 8)
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Use postfix instead of qmail?
« Reply #5 on: March 17, 2008, 11:29:47 AM »
paulgear

Quote
That doesn't seem to say much about postfix on SME, only qpsmtpd in general.

Quote: "qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but now it also includes smtp forward, postfix, exim and maildir "backends"."

If you then follow the links you find
http://wiki.qpsmtpd.org/
http://www.hjp.at/projekte/qpsmtpd/index.en.rxml
http://www.hjp.at/projekte/qpsmtpd/tutorial.rxml

You have to do the work yourself.
...

Offline paulgear

  • 3
  • +0/-0
Re: Use postfix instead of qmail?
« Reply #6 on: March 17, 2008, 02:07:27 PM »
Quote: "qpsmtpd was originally written as a drop-in qmail-smtpd replacement, but now it also includes smtp forward, postfix, exim and maildir "backends"."
...
You have to do the work yourself.

And presumably lose all support for configuring mail through the web interface?

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Use postfix instead of qmail?
« Reply #7 on: March 17, 2008, 05:26:07 PM »
Moving to General Discussion - a more appropriate forum for this topic.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: Use postfix instead of qmail?
« Reply #8 on: March 17, 2008, 09:12:53 PM »
That doesn't help much if you want to watch the logs in real time...   ;-)
Or why not use this:
Code: [Select]
tail -f /var/log/qmail/current | /usr/local/qmailanalog/bin/matchup | /usr/local/qmailanalog/bin/zsendmail | tai64nlocal

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Use postfix instead of qmail?
« Reply #9 on: March 17, 2008, 11:05:25 PM »
Code: [Select]

tail -f /var/log/qmail/current | /usr/local/qmailanalog/bin/matchup | /usr/local/qmailanalog/bin/zsendmail | tai64nlocal


This does not work for me...
« Last Edit: March 17, 2008, 11:06:58 PM by chris burnat »
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.