Postfix problem - telnet localhost 25 freezing

Discussion in 'HOWTO-Related Questions' started by Kinsfire, Mar 23, 2007.

  1. Kinsfire

    Kinsfire New Member HowtoForge Supporter

    I type in:

    telnet localhost 25

    and get back in return:

    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'.


    I've seen some of the threads, but I just don't know enough to understand it fully. I can make my way around *nix alright, but I'm a newbie when it comes to email.

    If it's helpful, here's the text of the main.cf, minus all the comments:

    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.2.8/samples
    readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
    smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    home_mailbox = Maildir/
    mailbox_command =
    myhostname = srv1.kinsfire.com
    mynetworks = 127.0.0.0/8
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_mailbox_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
     
  2. Hans

    Hans Moderator ISPConfig Developer

    Maybe your port 25 is blocked.
    What is the output of netstat -tap ?
     
  3. Kinsfire

    Kinsfire New Member HowtoForge Supporter

    It's a work in progress, so to speak, because the server is live.

    netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address Stat
    e PID/Program name
    tcp 0 0 *:dnp *:* LIST
    EN 2363/perl
    tcp 0 0 *:39652 *:* LIST
    EN 1653/rpc.statd
    tcp 0 0 localhost.localdomain:10024 *:* LIST
    EN 16369/amavisd (mast
    tcp 0 0 localhost.localdomain:10025 *:* LIST
    EN 16524/master
    tcp 0 0 *:mysql *:* LIST
    EN 2022/mysqld
    tcp 0 0 localhost.local:dyna-access *:* LIST
    EN 1925/clamd
    tcp 0 0 *:sunrpc *:* LIST
    EN 1634/portmap
    tcp 0 0 *:ndmp *:* LIST
    EN 2369/perl
    tcp 0 0 srv1.kinsfire.com:domain *:* LIST
    EN 1616/named
    tcp 0 0 localhost.localdomai:domain *:* LIST
    EN 1616/named
    tcp 0 0 localhost.localdomain:ipp *:* LIST
    EN 4463/cupsd
    tcp 0 0 *:smtp *:* LIST
    EN 16524/master
    tcp 0 0 srv1.kinsfire.com:smtp mx252.blueshort.com:56140 SYN_
    RECV -
    tcp 0 0 srv1.kinsfire.com:smtp 201.47.25.125.ads:microgrid SYN_
    RECV -
    tcp 0 0 srv1.kinsfire.com:smtp mail82.surespde.com:61183 SYN_
    RECV -
    tcp 0 0 srv1.kinsfire.com:smtp mx101.officialpencil.:43271 SYN_
    RECV -
    tcp 0 0 srv1.kinsfire.com:smtp debica-nat.mtnet.com:vipera SYN_
    RECV -
    tcp 0 0 srv1.kinsfire.com:smtp gold.rihinstone.com:49770 SYN_
    RECV -
    tcp 0 0 srv1.kinsfire.com:smtp post02.sales.overstock:7072 SYN_
    RECV -
    tcp 0 0 localhost.localdomain:rndc *:* LIST
    EN 1616/named
    tcp 1 0 srv1.kinsfire.com:smtp brokenaxle.org:45256 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp mx140.yourschoolboard:59195 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp mx222.blueshort.com:53764 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp 91.186.11.216:55393 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp adsl-68-86-192:eek:smosis-aeea CLOS
    E_WAIT -
    tcp 0 0 srv1.kinsfire.com:smtp 59.183.64.122:50308 ESTA
    BLISHED -
    tcp 1 0 srv1.kinsfire.com:smtp adsl-68-86-192-81.adsl2:pdb CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp mx150.drivingschoolsi:35641 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp bcrisobat.com:55645 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp Static-IP-cr200118115:51290 CLOS
    E_WAIT -
    tcp 1 0 srv1.kinsfire.com:smtp mx222.blueshort.com:53512 CLOS
    E_WAIT -
    tcp 1 0 localhost.localdomain:smtp localhost.localdomain:40991 CLOS
    E_WAIT -

    <some snippage happened here>

    tcp 0 0 *:imaps *:* LIST
    EN 5241/dovecot
    tcp 0 0 *: pop3s *:* LIST
    EN 5241/dovecot
    tcp 0 0 *: pop3 *:* LIST
    EN 5241/dovecot
    tcp 0 0 *:imap *:* LIST
    EN 5241/dovecot
    tcp 0 0 *:http *:* LIST
    EN 2141/httpd
    tcp 0 0 *:ssh *:* LIST
    EN 1900/sshd
    tcp 0 0 *:https *:* LIST
    EN 2141/httpd

    <and a bit more snipped>


    I didn't think that you needed to see ALL of it. It would have been huge.

    It looks to me as if netstat is telling me that 25 is working...(note that the space in the listing above for :pop3: was added by me to avoid a smiley problem)
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your mail log? What's in /etc/hosts?
     
  5. Kinsfire

    Kinsfire New Member HowtoForge Supporter

    Sorry for the delay in responding - RL got in the way.

    /etc/hosts reads as follows:

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    172.16.1.13 srv1.kinsfire.com kinsfire1


    I'll post only two of the 98 pages of the most recent maillog (and there are errors):

    Mar 25 04:12:11 srv1 sendmail[6305]: l2P8C2ap006305: from=root, size=424, class=0, nrcpts=1, msgid=<[email protected]>, [email protected]
    Mar 25 04:12:27 srv1 postfix/proxymap[6452]: fatal: unsupported dictionary type: mysql
    Mar 25 04:12:28 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:12:28 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:12:28 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6452 exit status 1
    Mar 25 04:12:28 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:13:28 srv1 postfix/proxymap[6467]: fatal: unsupported dictionary type: mysql
    Mar 25 04:13:29 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6467 exit status 1
    Mar 25 04:13:29 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:13:29 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:13:29 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:14:29 srv1 postfix/proxymap[6473]: fatal: unsupported dictionary type: mysql
    Mar 25 04:14:30 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6473 exit status 1
    Mar 25 04:14:30 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:14:30 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:14:30 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:15:30 srv1 postfix/proxymap[6480]: fatal: unsupported dictionary type: mysql
    Mar 25 04:15:31 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6480 exit status 1
    Mar 25 04:15:31 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:15:31 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:15:31 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:16:31 srv1 postfix/proxymap[6485]: fatal: unsupported dictionary type: mysql
    Mar 25 04:16:32 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:16:32 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:16:32 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6485 exit status 1
    Mar 25 04:16:32 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:17:11 srv1 sendmail[6305]: l2P8C2ap006305: timeout waiting for input from [127.0.0.1] during client greeting
    Mar 25 04:17:11 srv1 sendmail[6305]: l2P8C2ap006305: to=root, ctladdr=root (0/0), delay=00:05:09, xdelay=00:05:00, mailer=relay, pri=30424, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
    Mar 25 04:17:32 srv1 postfix/proxymap[6492]: fatal: unsupported dictionary type: mysql
    Mar 25 04:17:33 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6492 exit status 1
    Mar 25 04:17:33 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:17:33 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:17:33 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:18:33 srv1 postfix/proxymap[6504]: fatal: unsupported dictionary type: mysql
    Mar 25 04:18:34 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6504 exit status 1
    Mar 25 04:18:34 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:18:34 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:18:34 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:19:34 srv1 postfix/proxymap[6510]: fatal: unsupported dictionary type: mysql
    Mar 25 04:19:35 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6510 exit status 1
    Mar 25 04:19:35 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:19:35 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:19:35 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:20:35 srv1 postfix/proxymap[6516]: fatal: unsupported dictionary type: mysql
    Mar 25 04:20:36 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
    Mar 25 04:20:36 srv1 postfix/smtpd[16538]: warning: private/proxymap socket: service dict_proxy_open: Success
    Mar 25 04:20:36 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6516 exit status 1
    Mar 25 04:20:36 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:21:36 srv1 postfix/proxymap[6522]: fatal: unsupported dictionary type: mysql
    Mar 25 04:21:37 srv1 postfix/master[16524]: warning: process /usr/libexec/postfix/proxymap pid 6522 exit status 1
    Mar 25 04:21:37 srv1 postfix/master[16524]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Mar 25 04:21:37 srv1 postfix/smtpd[16538]: warning: premature end-of-input on private/proxymap socket while reading input attribute name


    I set up everything using the How-To "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)", written by you, in fact, and never noticed an error in the setup. But the problem I mentioned cropped up for some reason.

    It seems to be working as a mail server - somewhat. I'm just not getting responses from things like the 'telnet localhost 25' that I should.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    This is the problem: there's no MySQL support in Postfix. Something must have gone wrong when you compiled Postfix with MySQL support. Please try that part again.
     
  7. Kinsfire

    Kinsfire New Member HowtoForge Supporter

    Yup - I D ten T error. (Or as User Friendly once phrased it it was a clear case of PEBKAC - Problem Exists Between Keyboard And Chair.)

    I uninstalled Postfix via yum and then downloaded your RPM and installed it, then followed the rest of the tutorial again.

    Worked this time.

    Thanks for pointing out that I was missing what should have been obvious to me. I do appreciate it.
     
  8. waters

    waters New Member

    same problem

    I just had the some problem. It was caused by a "yum update" which must have hosed the compiled copy of postfix. To remedy, I backed up:
    /usr/lib64/sasl2/smtpd.conf
    /etc/postfix/master.cf
    /etc/postfix/main.cf

    Then recompiled postfix per falko's tutorial.
     

Share This Page