I've been trying to get setup my Mac OS X (10.5.8) to send emails from localhost so that I can test my scripts.
I normally get success messages, saying emails have been sent but they never reach their destination.
They appear to just get stuck in the Postfix mailq:
bash-3.2# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
60F062E9A958* 343 Wed Oct 13 19:36:24 [email protected]
[email protected]
189722E9A92F 3201 Wed Oct 13 19:35:57 MAILER-DAEMON
(connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
1A4882E9A930 2750 Wed Oct 13 19:35:57 MAILER-DAEMON
(connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
1F62E2E9A931 3197 Wed Oct 13 19:35:57 MAILER-DAEMON
(connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
20B5B2E9A932 3199 Wed Oct 13 19:35:57 MAILER-DAEMON
(connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
241E12E9A933 3309 Wed Oct 13 19:35:57 MAILER-DAEMON
(connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
242562E9A934 2782 Wed Oct 13 19:35:57 MAILER-DAEMON
(delivery temporarily suspended: connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
2917A2E9A935 2629 Wed Oct 13 19:35:57 MAILER-DAEMON
(Host or domain name not found. Name service error for name=imac.local type=MX: Host not found, try again)
[email protected]
295D42E9A936 3309 Wed Oct 13 19:35:57 MAILER-DAEMON
(delivery temporarily suspended: connect to imac.lan[192.168.1.65]: Connection refused)
[email protected]
What can I do to get this working?
If it helps, I have imac.dev pointing to 127.0.0.1 in my /etc/hosts
Thanks, P.