Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I managed to configure a local postfix server, which works correctly when using the mail command (and I receive emails from the cron deamon),

however, if I try to connect using telnet localhost 25 the server will not respond to commands, and CTRL+D will not quit (it freezes) or using python:

import smtplib
server = smtplib.SMTP('localhost', 25)
server.connect()

the connection will freeze too

Someone knows where this might be coming from?

For information, postfix sends my mail through GMail, here is my configuration:

mydomain_fallback = localhost
message_size_limit = 10485760
biff = no
mynetworks = 127.0.0.0/8, [::1]/128
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
recipient_delimiter = +
smtpd_tls_ciphers = medium
inet_protocols = all
inet_interfaces = loopback-only

# Gmail
relayhost=[smtp.gmail.com]:587
smtp_sasl_auth_enabled=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options=noanonymous
smtp_sasl_auth_enable=yes
smtp_tls_security_level=encrypt
tls_random_source=dev:/dev/urandom

and here is the tail from mail.log when connecting using python:

May 13 16:06:33 potiron postfix/master[12808]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
May 13 16:06:33 potiron postfix/postscreen[21559]: CONNECT from [127.0.0.1]:59676
May 13 16:06:33 potiron postfix/postscreen[21559]: WHITELISTED [127.0.0.1]:59676
May 13 16:07:33 potiron postfix/smtpd[21562]: warning: database /etc/aliases.db is older than source file /etc/aliases
May 13 16:07:33 potiron postfix/smtpd[21562]: fatal: open /etc/postfix/submit.cred: No such file or directory
May 13 16:07:34 potiron postfix/master[12808]: warning: process /usr/libexec/postfix/smtpd pid 21562 exit status 1
May 13 16:07:34 potiron postfix/master[12808]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

it seems that my connection is whitelisted, however, it seems that it connects from 59676, is this conflicting with mynetworks = 127.0.0.0/8, [::1]/128?

share|improve this question
    
I found the answer, see my question here superuser.com/questions/595016/… –  oulipo May 13 '13 at 14:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.