Why I want to replace sendmail by my own "sendmail" (open a tcp
connection to localhost on port 25) is because postfix when he sends the
250 Ok after DATA sending gives the file name:

250 2.0.0 Ok: queued as 06F2F1C00B

where 06F2F1C00B is the filename.

Le mercredi 01 août 2012 à 10:50 -0400, Wietse Venema a écrit :

> Wael MANAI:
> > I am using sendmail to send emails to postfix and I would like to know
> > if there is a way to get the filename given by postfix?
> 
> Wietse:
> > > No. The file name changes after you submit the mail.
> 
> Wael MANAI:
> > Thx for the answer. So how can I replace sendmail cmd by telnet to send
> > emails always through postfix? I thought to do telnet on 127.0.0.1 but I
> > do not know which configuration to make in master.cf....
> 
> Postfix provides standard interfaces to receive or send mail: SMTP,
> UNIX pipe-to-command; there are also standard interfaces to manipulate
> email content: pipe-to-command, SMTP and Milter. These interfaces
> are where the Postfix support ends.
> 
> Instead of the Postfix semdmail command, you can use a so-called
> "mini sendmail" that submits mail over SMTP.  For example:
> http://www.acme.com/software/mini_sendmail/ 
> 
> That still will not get you the Postfix queue file name.  Programs
> that attempt to read or write Postfix queue files are UNSUPPORTED.
> This means that they WILL BREAK when Postfix is updated.
> 
>       Wietse

Reply via email to