Il blog di Gas

Just another WordPress site

Hostmonster and email sender

with 2 comments

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.

Written by gas

febbraio 7th, 2007 at 9:39 pm

Posted in Linux

Tagged with

2 Responses to 'Hostmonster and email sender'

Subscribe to comments with RSS or TrackBack to 'Hostmonster and email sender'.

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

    govo

    27 mar 08 at 6:15 am

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

    govo

    27 mar 08 at 6:15 am

Leave a Reply