You are not logged in.
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
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
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
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
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
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 , 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
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
no one?
[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
Offline