Mail Services keeps shutting down

I have been plaque with this problem for about two months. I have 5 static ips and I use one of the ips to host a webserver and very small mail server. I am on DSL. My problem is my mail server always shuts down after a couple hours. The error is

127.0.0.1 port 25 is already in use.

I usually restart the server and everything is fine for a few hours and the mail is shut down.

I am using 10.4.5 OS X Server G4 1.4 GHZ Sawtooth.
this is my postconf -n:

always_bcc = virus@kents.mine.nu
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug peerlevel = 2
enable serveroptions = yes
html_directory = no
inet_interfaces = all
local recipientmaps =
luser_relay = virus
mail_owner = postfix
mail spooldirectory = /var/mail
mailbox sizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message sizelimit = 10485760
mydestination = $myhostname,localhost.$mydomain,kents.mine.nu
mydomain = kents.mine.nu
mydomain_fallback = localhost
myhostname = mail.kents.mine.nu
mynetworks = 127.0.0.1/32,kents.mine.nu,mail.kents.mine.nu
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd pw_server_securityoptions = login,plain
smtpd recipientrestrictions = permit sasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpd sasl_authenable = yes
smtpd tls_keyfile =
smtpd use_pwserver = yes
unknown local_recipient_rejectcode = 550

I also checked to see if port 25 is being used some where else:
samuel$ netstat -atn | grep 25
tcp4 0 0 127.0.0.1.10025 . LISTEN
tcp4 0 0 *.25 . LISTEN
tcp4 0 0 *.625 . LISTEN
1f12660 stream 0 0 0 1f12550 0 0 /var/tmp/SCDynamicStoreNotifyFileDescriptor-21763
1f12550 stream 0 0 0 1f12660 0 0
1f126e8 dgram 0 0 0 1769330 0 1f125d8
1f125d8 dgram 0 0 0 1769330 0 1f12990

Thanx in advance for any help in this matter.

Mac OS X (10.4)

Mac OS X (10.4)

Posted on Apr 6, 2006 10:17 AM

Reply
5 replies

Apr 6, 2006 4:35 PM in response to davidh

Apr 6 18:08:56 KentsServer postfix/smtpd[10770]: warning: connect #3 to subsystem public/cleanup: Connection refused
Apr 6 18:09:06 KentsServer postfix/smtpd[10771]: warning: connect #4 to subsystem public/cleanup: Connection refused
Apr 6 18:09:06 KentsServer postfix/smtpd[10770]: warning: connect #4 to subsystem public/cleanup: Connection refused
Apr 6 18:09:16 KentsServer postfix/smtpd[10771]: warning: connect #5 to subsystem public/cleanup: Connection refused
Apr 6 18:09:16 KentsServer postfix/smtpd[10770]: warning: connect #5 to subsystem public/cleanup: Connection refused
Apr 6 18:09:26 KentsServer postfix/smtpd[10771]: warning: connect #6 to subsystem public/cleanup: Connection refused
Apr 6 18:09:26 KentsServer postfix/smtpd[10770]: warning: connect #6 to subsystem public/cleanup: Connection refused
Apr 6 18:09:36 KentsServer postfix/smtpd[10771]: warning: connect #7 to subsystem public/cleanup: Connection refused
Apr 6 18:09:36 KentsServer postfix/smtpd[10770]: warning: connect #7 to subsystem public/cleanup: Connection refused

This what I get when the mail server shuts down. The previous post suggestion didn't work. Shuts down the mail server even quicker....seems like every 10 minutes the mail server shuts down.

Apr 6, 2006 6:53 PM in response to sam kent1

Tell me, have you installed any updates or made any modifications by hand, anything other than Apple's defaults ?

It is -not- any kind of Panacea, but have you used Disk Utility to run the Repair Permissions routine (on the boot drive) ?

The "connection refused" message...

Please post more of the log from prior to that message.
Or, do:
sudo postfix reload

and then
tail -f /var/log/system.log

At the same time, have another Terminal window open and run:
tail -f /var/log/mail.log



Please also post the result of
tail -80 /etc/postfix/master.cf

On the server itself, what does
dig mail.kents.mine.nu

show ?

The correct IP ?

Something looks fishy with your DNS...

dig mx kents.mine.nu

kents.mine.nu. 43200 IN MX 10 kents.mine.nu.
kents.mine.nu. 43200 IN MX 5 kents.mine.nu.

;; ADDITIONAL SECTION:
kents.mine.nu. 14400 IN A 71.144.16.226
kents.mine.nu. 14400 IN A 71.144.16.226

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail Services keeps shutting down

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.