Mandalika's scratchpad [ Work blog @Oracle | My Music Compositions ]

Archives
09.04   10.04   11.04   12.04   01.05   02.05   03.05   04.05   05.05   06.05   07.05   08.05   09.05   10.05   11.05   12.05   01.06   02.06   03.06   04.06   05.06   06.06   07.06   08.06   09.06   10.06   11.06   12.06   01.07   02.07   03.07   04.07   05.07   06.07   08.07   09.07   10.07   11.07   12.07   01.08   02.08   03.08   04.08   05.08   06.08   07.08   08.08   09.08   10.08   11.08   12.08   01.09   02.09   03.09   04.09   05.09   06.09   07.09   08.09   09.09   10.09   11.09   12.09   01.10   02.10   03.10   04.10   05.10   06.10   07.10   08.10   09.10   10.10   11.10   12.10   01.11   02.11   03.11   04.11   05.11   07.11   08.11   09.11   10.11   11.11   12.11   01.12  

Friday, June 05, 2009        
 
Mac OS X 10.5 Tip: Outgoing Only sendmail

By default, sendmail is disabled on Mac OS X 10.5 (Leopard). If you just want to enable/disable sending outgoing mail, run the following highlighted commands.


% sudo postfix start
Password:
postfix/postfix-script: starting the Postfix mail system

% netstat -an | grep LIST | grep 25
tcp4 0 0 127.0.0.1.25 *.* LISTEN

% sudo postfix stop
postfix/postfix-script: stopping the Postfix mail system

% netstat -an | grep LIST | grep 25
%


One of several possible error messages [that might have lead you to this page] is pasted below. The above solution should fix it.


javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Transport.send0(Transport.java:188)
at javax.mail.Transport.send(Transport.java:118)
...
...
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
... 9 more





2004-2011 

This page is powered by Blogger. Isn't yours?