You are not logged in.

#1 2011-03-02 22:50:57

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

how to get sendmail up and running?

So yeah, my server can't send outgoing emails. I don't want to set up a full-blown mail server, I just want my php apps to be able to send emails. Everywhere I go it seems to say it should work out of the box, but not here. Any ideas?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#2 2011-03-02 23:28:32

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: how to get sendmail up and running?

Try msmtp instead of sendmail: https://wiki.archlinux.org/index.php/Msmtp


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2011-03-03 10:35:03

ghen
Member
From: Belgium
Registered: 2010-08-31
Posts: 121

Re: how to get sendmail up and running?

That won't do any queueing if your upstream smarthost is unavailable.  You'll have to handle errors, retransmissions etc from within your php app.

If you don't want that, you could install a minimal Postfix, with no smtpd daemon.  Sendmail-cli compatible clients (like php, cron) will be able to send mail without any network daemons listening.

Offline

#4 2011-03-03 18:38:06

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: how to get sendmail up and running?

well I mean, I do have the postfix package installed, but it hasn't improved sendmail's ability to function. I also tried following the postfix wiki a bit but still no luck.


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#5 2011-03-03 19:40:55

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: how to get sendmail up and running?

have you got exim installed? Also as I recalled I need to install php-pear to be able to use the "mail" function.
As far as I remember php-pear solved my problems.
http://pear.php.net/package/Mail/redirected

Offline

#6 2011-03-03 20:44:13

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: how to get sendmail up and running?

I second msmtp, if you don't need queue. Otherwise, nullmailer is one of the simplest MTA i have seen. Of course, Exim is the best one wink, but general purpose MTA seems an overkill for your needs...

PEAR is not needed for mail() to function properly, all it needs is sendmail-compatible /usr/sbin/sendmail

Offline

#7 2011-03-06 21:27:02

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: how to get sendmail up and running?

ok so I have msmtp working from command line but can't seem to integrate it into php. what I have so far is this: sendmail_path = "/usr/bin/msmtp -t --file='/etc/msmtp.conf'"

any ideas?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#8 2011-03-09 19:47:31

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: how to get sendmail up and running?

no one? hmm


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#9 2011-07-04 13:57:06

s922183t
Member
Registered: 2011-03-25
Posts: 37

Re: how to get sendmail up and running?

Same doubt here.

Offline

Board footer

Powered by FluxBB