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=<20090402215814.4519d85...@myserver.net> > Apr 2 17:58:14 server1 postfix/qmgr[31752]: 4519D85C0B: > from=<apa...@myserver.net>, size=922, nrcpt=1 (queue active) > Apr 2 17:58:14 server1 postfix/qmgr[31752]: 4519D85C0B: > to=<x...@hotmail.com>, 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 apa...@myserver.net Wietse