1 2 3 Previous Next 42 Replies Latest reply: Nov 22, 2012 2:31 PM by jaydisc
Antony D'Emanuele Level 2 Level 2 (305 points)

Hi,

 

I just had a look at my Server System log and I seem to have an issue as I am getting the same repeating entries:

 

Aug  4 11:45:11 discussion postfix/master[92044]: fatal: bind: private/smtpd: Invalid argument

Aug  4 11:45:12 discussion com.apple.launchd[1] (org.postfix.master[92044]): Exited with code: 1

Aug  4 11:45:12 discussion com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds

Aug  4 11:45:21 discussion postfix/master[92047]: fatal: bind: private/smtpd: Invalid argument

Aug  4 11:45:22 discussion com.apple.launchd[1] (org.postfix.master[92047]): Exited with code: 1

Aug  4 11:45:22 discussion com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds

Aug  4 11:45:31 discussion postfix/master[92049]: fatal: bind: private/smtpd: Invalid argument

Aug  4 11:45:32 discussion com.apple.launchd[1] (org.postfix.master[92049]): Exited with code: 1

Aug  4 11:45:32 discussion com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds

 

 

I have a new Mac Pro with 10.7.4 OS X Server installed.

 

Is the above anything to worry about?

 

Thanks

  • 1. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    I'd worry if you use mail services or want to receive any mail alerts. Can you run postconf -n and alter any sensitive output?

  • 2. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    I do not run use mail servces, but I do have a Simple Machine Forum on my server. What does the loop actually mean? Do I need to contact Apple Support about this?

     

    I don't often delve into Terminal, but here is what I get with postconf -n

     

    biff = no

    command_directory = /usr/sbin

    config_directory = /etc/postfix

    content_filter = smtp-amavis:[127.0.0.1]:10024

    daemon_directory = /usr/libexec/postfix

    data_directory = /Library/Server/Mail/Data/mta

    debug_peer_level = 2

    enable_server_options = yes

    header_checks = pcre:/etc/postfix/custom_header_checks

    html_directory = /usr/share/doc/postfix/html

    imap_submit_cred_file = /private/etc/postfix/submit.cred

    inet_interfaces = loopback-only

    inet_protocols = all

    mail_owner = _postfix

    mailbox_size_limit = 0

    mailbox_transport = dovecot

    mailq_path = /usr/bin/mailq

    manpage_directory = /usr/share/man

    message_size_limit = 10485760

    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

    mydomain = pharmweb.net

    mydomain_fallback = localhost

    mynetworks = 127.0.0.0/8, [::1]/128

    newaliases_path = /usr/bin/newaliases

    queue_directory = /Library/Server/Mail/Data/spool

    readme_directory = /usr/share/doc/postfix

    recipient_canonical_maps = hash:/etc/postfix/system_user_maps

    recipient_delimiter = +

    relayhost =

    sample_directory = /usr/share/doc/postfix/examples

    sendmail_path = /usr/sbin/sendmail

    setgid_group = _postdrop

    smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit

    smtpd_enforce_tls = no

    smtpd_helo_required = yes

    smtpd_helo_restrictions = reject_invalid_helo_hostname

    smtpd_pw_server_security_options = cram-md5

    smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks  reject_unauth_destination check_policy_service unix:private/policy permit

    smtpd_sasl_auth_enable = yes

    smtpd_tls_CAfile = /etc/certificates/discussion.pharmweb.net.6920566F585596F589FB47B4756EF0B954B44 DA7.chain.pem

    smtpd_tls_cert_file = /etc/certificates/discussion.pharmweb.net.6920566F585596F589FB47B4756EF0B954B44 DA7.cert.pem

    smtpd_tls_ciphers = medium

    smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL

    smtpd_tls_key_file = /etc/certificates/discussion.pharmweb.net.6920566F585596F589FB47B4756EF0B954B44 DA7.key.pem

    smtpd_use_pw_server = yes

    smtpd_use_tls = yes

    tls_random_source = dev:/dev/urandom

    unknown_local_recipient_reject_code = 550

    use_sacl_cache = yes

    virtual_alias_maps = $virtual_maps

  • 3. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    Launchd, the process that manages all processes is basically looping continuously trying to start postfix. I think postfix needs to run even without mail services. However, there is something wrong with Postfix's configuration which is causing it to fail startup (fatal: bind: private/smtpd: Invalid argument), so launchd is continuously trying to respawn it.

     

    I don't immediately see what the issue is in that config.

     

    Try:

     

    sudo postfix check

     

    That should tell postfix to verify its configuration. See what that reveals.

     

    Have you modified anything in /etc/postfix?

  • 4. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    I am not aware of modifying anything in  /etc/postfix, I will check with the person who helped me set up the server.

     

    Here is what I get:

     

    discussion:~ tony$ sudo postfix check

    Password:

    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta

    discussion:~ tony$

     

    Thanks

  • 5. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    OK. Let's check the permissions. What's the output of:

     

    ls -la /Library/Server/Mail/Data/

  • 6. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    discussion:~ tony$ ls -la /Library/Server/Mail/Data/

    total 0

    drwxr-xr-x+  6 root      wheel  204 Feb 21 02:21 .

    drwxr-xr-x+  3 root      wheel  102 Nov 29  2011 ..

    drwxrwxr-x+  2 _dovecot  mail    68 Nov 29  2011 mail

    drwxrwx---+  3 _postfix  mail   102 Feb 21 02:27 mta

    drwxrwxr-x+  2 _dovecot  mail    68 Nov 29  2011 rules

    drwxr-xr-x+ 16 root      wheel  544 Aug  5  2011 spool

    discussion:~ tony$

  • 7. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    Weird, mine are the same, but you seem to have ACLs set (the +). Can you add -e to the ls command?

     

    ls -lae /Library/Server/Mail/Data/

  • 8. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    discussion:~ tony$ ls -lae /Library/Server/Mail/Data/

    total 0

    drwxr-xr-x+  6 root      wheel  204 Feb 21 02:21 .

    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit

    1: user:tony inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit

    drwxr-xr-x+  3 root      wheel  102 Nov 29  2011 ..

    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit

    1: user:tony inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit

    drwxrwxr-x+  2 _dovecot  mail    68 Nov 29  2011 mail

    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit

    1: user:tony inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit

    drwxrwx---+  3 _postfix  mail   102 Feb 21 02:27 mta

    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit

    1: user:tony inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit

    drwxrwxr-x+  2 _dovecot  mail    68 Nov 29  2011 rules

    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit

    1: user:tony inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit

    drwxr-xr-x+ 16 root      wheel  544 Aug  5  2011 spool

    0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit

    1: user:tony inherited allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit

    discussion:~ tony$

  • 9. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    I wonder if your acl for Tony is the issue. You should try stripping it from that directory. The command for that would be (with sudo or as root):

     

    chmod -R -N /Library/Server/Mail/Data/mta

     

    (-R means to all subfolders, -N means strip all ACLs)

     

    Then check again:

     

    sudo postfix check

  • 10. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    Thanks for this. before I do this I will check with the guy that helped me set up the server as I do not want to impact on my live forum. I will post back once I have discussed with him.

     

    For info, Tony is my user account and also an administrator account.

  • 11. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    No worries. Your user account should never be an administrator

  • 12. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    OK, I tried chmod -R -N /Library/Server/Mail/Data/mta and this is what I got:

     

    discussion:~ tony$ chmod -R -N /Library/Server/Mail/Data/mta

    chmod: Failed to clear ACL on file /Library/Server/Mail/Data/mta: Operation not permitted

    chmod: Failed to clear ACL on file master.lock: Operation not permitted

     

    ??

  • 13. Re: Throttling respawn loop?
    jaydisc Level 4 Level 4 (1,400 points)

    Sorry. That command does require sudo.

  • 14. Re: Throttling respawn loop?
    Antony D'Emanuele Level 2 Level 2 (305 points)

    Can you remind me how I use sudo, long time since I used it ;-)

     

    ps appreciate your help with this...

1 2 3 Previous Next