Email notification

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

matteo wrote:this is the root mailbox whilst you must grep into the sendmail log, e.g.:

Code: Select all

grep thorsten@phpmyfaq.de /var/log/maillog
Grep gives this output:
Image
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
as you can see the issue is not related to phpMyFAQ or generally to PHP in your server BUT strictly to your local SMTP server.
My suggestions, quite off topic here, are:
  1. Check if you've changed something in your firewall configuration: maybe you have closed TCP 25 OUT;
  2. As said before please check if you have recently updated the sendmail package (grep sendmail /var/log/yum.log*);
  3. If yes and your Fedora is under Legacy updates (quite true if the version is <=3), please check this ML if something could arise the issue after your last updates
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

Strange thing is that i can send mail with telnet
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Which Fedora version?

Post by matteo »

Hi,
please give me some info about your Fedora release (cat /etc/*release) and your sendmail rpm version (rpm -qi sendmail). I've read many many troubles with the last Fedora legacy sendmail updates.
The main difference between injecting mail by telnet 25 and sending emails by PHP is related to PHP conf (grep sendmail /etc/php.ini) AND obviously to the addresses you're emailing to: you'll always being able to send email to your local (local == related to those addresses for which your SMTP server is the registered MX) email addresses.
You could try to 'telnet' an email both to you and then to matteo@phpmyfaq.de, grepping the whole info in the logs for searching differences between the two shipments.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

Here's the output;
Image
Image
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

FC4: no legacy issues... More investigation required

Post by matteo »

Hi,
your OS is a FC4 so no Fedora Legacy update issues are addressable here.
  1. Have you try to send an email by telnet both to your email address and matteo@phpmyfaq.de and to look at:

    Code: Select all

    less /var/log/maillog
    ?
  2. Unfortunately I've no FC4 server both running or for testing so we should try to collect some info directly within your server. You're running the latest sendmail package: I suppose you're running the nightly yum update so it would be useful to investigate if the issue of your emails is related to a nightly package update. You could run:

    Code: Select all

    egrep "sendmail|httpd|php" /var/log/yum.log*
    and try to recall if the upgrade of PMF fell into an update time range above.
  3. please, post also the output of:

    Code: Select all

    grep sendmail /etc/php.ini
Currently my idea is that the sendmail package update has broken your previous mail configuration e.g.: /etc/mail/sendmail.mc, /etc/sendmail.cf or a php package update has scrambled your /etc/php.ini.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
DaRichMan
Posts: 21
Joined: Mon Jun 14, 2004 9:55 am
Location: Oldenzaal [NL]

Post by DaRichMan »

Dear matteo,

Thanks so far for your help.

In a few days I will receive a new Intel server an i will install a new OS on that (probably SuSe).
So for now I will not look any further to solve this problem.

Again thanks for you great support (thanks to Thorsten too).

Richard
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

You're welcome! :D

PS: if possibile, give a chance to CentOS :wink: !

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply