I did the tcpdump and I think the following should be the reason? --- 500 5.5.1 Command unrecognized: "AUTH LOGIN".. ---
it tries to open the session with: --- 250-<mydomain> Hello www@<mydomain> [x.x.x.x], pleased to meet you..250-ENHANCEDSTATUSCODES..250-PIPELINING..250-8BITMIME..250-SIZE..250-DSN..250-ETRN..250-DELIVERBY..250HELP.. --- On Thu, Sep 5, 2013 at 2:18 PM, Stuart Henderson <s...@spacehopper.org>wrote: > On 2013-09-02, Tony Berth <tonybe...@googlemail.com> wrote: > > well the script does talk to google mail correctly so somehow it should > > work. > > If the script is talking to google mail, it is going to be making > SMTP connections directly itself. Given the log entry you showed, I would > probably try sniffing the TCP connection (maybe something like > "tcpdump -A -s 1500 -i lo0 port 25" will do). > > > I think all these open source php based solutions use the same way to > > > send e-mails. > > No, they don't. > > Sending mail from PHP is a right mess, there is the mail() function > but it's rather limited (on unix, it just pipes to a program and can't > do smtp-auth), also some server hosts disable it, so in practice most > larger PHP apps have another way of sending mail where they either > execute sendmail, or handle the socket connections themselves, or use a > library (phpmailer etc). > @owner ${DRUPAL_OWNER}