• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

problem sending mail via php (oscommerce)

G

gotcha

Guest
I got a funny problem sending mail via php.

I use the standard mail() function from php which shows no error after the call. But none of the emails I want to send this way ever get to the receiver. But not only this they also don´t show up in ANY logfile (and I checked them all!!!).

If I try to send mail via console everything is fine though.

I already tried to change the php.ini path to sendmail which didn´t help.

mx record shouldn´t be an issue because I don´t want to recieve emails.

I also tried mchk without any result....

my phpinfo says SMTP=localhost (Port 25)

Maybe someone of the smart guys out there has a clue for me.

thanx in advance
 
by the way...

by the way I using a 1&1 root server which is a server completely configured by 1&1 with plesk preinstalled.
 
I can suggest you to check following things:

1) 127.0.0.0/8 network is permanently whitelisted on your server (Server -> Mail -> White List)

2) Make sure that /usr/sbin/sendmail is a symbolic link to /var/qmail/bin/sendmail binary.

3) If doesn't helped - check out if whole mailsystem works. E.g. try to send mails via webmail. Trace down delivering stages through the /usr/local/psa/var/log/maillog.

4) If doesn't works anyway -> try to use /usr/local/psa/admin/sbin/mchk
utility (--help for little info). It could rewrite all mail related configs and if problem is in misconfiguration - it should help. Do not
forget to restart qmail after running mchk:
# /etc/init.d/qmail restart

Hope it will help
 
Back
Top