I am having problems getting sendmail working. I just want to be able to send out e-mails from programs like Asterisk and PHP scripts. I don’t want to set up a full e-mail server.
So far all the searches I have brought up tell me it is hard but not how to do it.
You should be able to route mail through localhost to your destination. Just tell your php scripts that your mail relay is at localhost (127.0.0.1).
Note: Keep in mind - many email servers will check for PTR records to ensure mail is not spoofed. PTR’s are basically reverse DNS. If I receive an email from w.x.y.z from somebody@foo.com, I can do a lookup on w.x.y.z to ensure it is really foo.com. It cuts down on quite a bit of spamming and the like.
Jul 10 13:44:07 phone postfix/pickup[5184]: E519D14000182: uid=0 from=<root>
Jul 10 13:44:07 phone postfix/cleanup[5524]: E519D14000182: message-id=<20080710184407.E519D14000182@phone.site>
Jul 10 13:44:07 phone postfix/qmgr[5185]: E519D14000182: from=<root@phone.site>, size=284, nrcpt=1 (queue active)
Jul 10 13:44:18 phone postfix/smtp[5501]: E519D14000182: to=<email@gmail.com>, relay=none, delay=16, delays=6.1/0/10/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
I have tried this with 3 different email accounts from 3 different providers and get the same in the log file.
I get the same error if I try to send a voicemail attachment from Asterisk which is my final goal. Asterisk uses “sendmail -t” on the command line though.
I have only been playing with Suse for about 2 months now and it is most of my Linux experience so please don’t assume too much.