New User Registration (2 posts)

  1. ziation
    Posted 7 years ago #

    Having an issue with the new user registration email bouncing because it is not using the email address I have configured under General Settings in the admin console. The text next to this field states 'This address is used for admin purposes, like new user notification' so I assume this means the registration email but my mail logs show that wordpress is using the system hostname and thus is being bounced by my relay mail server.

    Is this a defect in 2.7.1?

  2. ziation
    Posted 7 years ago #

    Two problems existed here:

    1. The wordpress devs have hard coded the default admin email account to be 'wordpress@yoursite.com' in two separate locations in pluggable.php. This seems to have been known except by me.

    2. The second (and worse issue IMO) is that the phpmailer app was choosing to use the standard php mail() function instead of the smtp or other options and this function uses the user name of the web server process and the server's host name as the domain name for the senders email address so you will get something like www-data@localhost.localdomain.

    To fix both these I simply changed the hard coded default email address to what I wanted in pluggable.php and also changed the 'sendmail_path' php.ini attribute to include the '-f user@domain' option to force the sender email I wanted to use. This solution of course does not scale because all php apps I run in any web site on my server will now be send email from this email address (not good).

    I can't believe this is the defacto standard for sending email using php web apps.

Topic Closed

This topic has been closed to new replies.

About this Topic