|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Adding custom info to postfix logs
From: Adrian von Bidder (avbidder
fortytwo.ch)
Date: Wed Jul 27 2005 - 02:02:16 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tuesday 26 July 2005 23.34, Magnus Bäck wrote:
> On Tuesday, July 26, 2005 at 23:29 CEST,
>
> Christian Joergensen <mail
razor.dk> wrote:
> > On Tue, 2005-07-26 at 18:21 -0300, Marcos Mendonça wrote:
> > > Anyother way i could add the info i want to the sendmail log?
Is encoding some tagging info in the envelope sender out of the question?
Use <sender+encodedthingy
your.domain> or something like that. Base32 is
your friend for putting arbitrary encoded MPEG videos or whatever in
'encodedthingy'.
> > What about using another approach and deliver the mail with smtp to
> > localhost? Then you will get the queue-id to do your matching in the
> > mail.log.
>
> That's another way, but it is not without drawbacks:
>
> * Postfix must be running. If the application attempts to send a
> message during one of the short periods where Postfix is down (a
> restart or similar) the application must deal with that in a
> graceful manner.
IIRC, using sendmail -bs to start the smtp session instead of connecting to
localhost gets rid of that requirement.
> * Unless the system is seriously hosed, messages submitted with
> sendmail(1) are always accepted. If there is a problem, the message
> is bounced. This is very convenient for automated systems that send
> mail without user supervision. SMTP submissions puts much higher
> requirements on the application and its SMTP client.
OTOH a 'stop and fail on first error' kind of error handling is not *that*
hard to implement. Yet an SMTP dialog is more complex than just calling
sendmail, that's true.
cheers
-- vbi
--
Powerpoint: das Viagra für Manager.
-- Detlef Borchert, NZZ, 22.7.2005
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: get my key from http://fortytwo.ch/gpg/92082481
iKcEABECAGcFAkLnMXhgGmh0dHA6Ly9mb3J0eXR3by5jaC9sZWdhbC9ncGcvZW1h
aWwuMjAwMjA4MjI/dmVyc2lvbj0xLjUmbWQ1c3VtPTVkZmY4NjhkMTE4NDMyNzYw
NzFiMjVlYjcwMDZkYTNlAAoJECqqZti935l6oKMAni2VK/qWu8YWa49so1sRXbdL
a2oyAJ9Cbqh27CButMa8d/SO2IjjaSrpvw==
=tyZM
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]