21:39 - Wednesday 7 February , 2007

Hostmonster and email sender

Filed under: Linux Tags:

I just found out that my [tag]wordpress[/tag] blog hosted at Hostmonster.com doesn’t send out mail as I want.

Hostmonster lets you connect to your account through ssh and it’s my experience that any hosting company that doesn’t provides you with this kind of connection turns out to be shitty after a while.

So after you have sent your an id card copy to the hostmonster guys ( and gals ) connect to your account with ssh.Now you have to look for a “php.ini” file under “~/public_html/”. That’s an already made php.ini that’s good for hostmonster, copy it to your wordpress root directory and then modify it.

Change line 604 from:

sendmail_path = /usr/sbin/sendmail -t -i

to

sendmail_path = /usr/sbin/sendmail -t -i -fuser@example.com

The second line will make “user@example.com” the sender of all wordpress emails.(It’s not a typo, -f in the above command is the command option, hence the email address will be “user@example.com” and not “fuser@example.com)


CLICK HERE TO SIGNUP FOR HostMonster.COM NOW.


  • It doesn’t work. I modify like this:
    sendmail_path = /usr/sbin/sendmail -t -i -fnoreplay@mydomain.com

  • It doesn’t work. I modify like this:
    sendmail_path = /usr/sbin/sendmail -t -i -fnoreplay@mydomain.com
    and I am using hostmonster

Write a comment

Oppure usa OpenID: