Wietse Venema:
> Claudio Frydlewsky:
> > Hi,
> >
> > I have a web server running APACHE + PHP + POSTFIX with Virtual Servers.
> >
> > I need to be able to see where the e-mails come from inside the logs.
> >
> > The problem is that when i look into the postix logs i see this:
> >
> > Apr 2 17:58:14 server1 postfix/pickup[14329]: 4519D85C0B: uid=48
> > from=<apache>
> > Apr 2 17:58:14 server1 postfix/cleanup[14278]: 4519D85C0B:
> > message-id=<[email protected]>
> > Apr 2 17:58:14 server1 postfix/qmgr[31752]: 4519D85C0B:
> > from=<[email protected]>, size=922, nrcpt=1 (queue active)
> > Apr 2 17:58:14 server1 postfix/qmgr[31752]: 4519D85C0B:
> > to=<[email protected]>, relay=none, delay=0, status=deferred (delivery
> > temporarily suspended: lost connection with mx1.hotmail.com[65.55.37.88]
> > while sending RCPT TO)
> >
> > I would like to know why I can't see the real mail from address in the logs.
> >
> > Can anybody help me with this?
>
> Configure PHP and replace:
>
> /usr/sbin/sendmail -f senderaddress ....other arguments...
>
> by:
>
> /usr/sbin/sendmail ....other arguments...
>
> The -f option overrides the default sender address [email protected]
Um, that should be the other way around:
Replace: /usr/sbin/sendmail ....other arguments...
by: /usr/sbin/sendmail -f senderaddress ....other arguments...
Wietse