Postfix cant receive (ubuntu)

Discussion in 'Installation/Configuration' started by enriquecm, May 6, 2006.

  1. enriquecm

    enriquecm New Member

    Well i have a problem, i install the Ispconfig and i cant receive email i dont know why but i sends the configuration if you can help me!

    root@server1:hostname -f
    localhost.localdomain :confused:

    root@server1:netstat -a
    tcp 0 0 localhost.localdoma:ipp *:* LISTEN
    tcp 0 0 *:smtp *:* LISTEN
    tcp 0 0 localhost.localdo:32769 localhost.localdo:45286 ESTABLISHED
    tcp 0 0 localhost.localdo:45286 localhost.localdo:32769 ESTABLISHED
    tcp6 0 0 *:imaps *:* LISTEN
    tcp6 0 0 *: pop3s *:* LISTEN
    tcp6 0 0 *: pop3 *:* LISTEN


    configurations /etc/postfix/

    === main.cf ===
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version

    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    myhostname = subelo.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = server1.subelo.com, localhost.subelo.com, localhost, subelo.com
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, 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/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    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
    virtual_maps= hash:/etc/postfix/virtusertable

    == local-host-names ==
    localhost
    www.subelo.com
    webmail.subelo.com
    subelo.com
    isp.subelo.com

    == virtusertable ==
    [email protected] ecervera
    [email protected] ecervera
    [email protected] ecervera
    [email protected] ecervera
    [email protected] pcerveram
    [email protected] pcerveram
    [email protected] pcerveram
    [email protected] pcerveram
    [email protected] enriquejr
    [email protected] enriquejr
    [email protected] enriquejr
    [email protected] enriquejr

    --------------------------------------------------
    ok i have 3 users,
    i can received email of pcerveram and enriquejr :confused:
    but i CANT received of ecervera user email :eek:

    And the 3 users i cant send any email

    -------------------------------------------------

    The Ispconfig work correctly (ftp, http, etc, etc) but only the problem is the postfix

    I erase the prefix of web[WEBID]_ in the Ispconfig managment

    Thanks for ure help
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your mail log?
    What's the output of
    Code:
    netstat -tap
    ?
     
  3. enriquecm

    enriquecm New Member

    error mail and netstat

    /var/log/mail.info

    May 1 18:23:55 server1 postfix/smtp[18620]: AC8BC190061: to=<[email protected]>, relay=none, delay=161823, status=defer$
    May 1 19:30:35 server1 postfix/smtp[21527]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 1 19:30:35 server1 last message repeated 3 times
    May 1 19:30:35 server1 postfix/smtp[21527]: AC8BC190061: to=<[email protected]>, relay=none, delay=165824, status=defer$
    May 1 20:53:54 server1 postfix/smtp[3637]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (port$
    May 1 20:53:54 server1 last message repeated 3 times
    May 1 20:53:54 server1 postfix/smtp[3637]: AC8BC190061: to=<[email protected]>, relay=none, delay=170822, status=deferr$
    May 1 22:00:33 server1 postfix/smtp[11026]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 1 22:00:33 server1 last message repeated 3 times
    May 1 22:00:33 server1 postfix/smtp[11026]: AC8BC190061: to=<[email protected]>, relay=none, delay=174822, status=defer$
    May 1 23:07:14 server1 postfix/smtp[12839]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 1 23:07:14 server1 last message repeated 3 times
    May 1 23:07:14 server1 postfix/smtp[12839]: AC8BC190061: to=<[email protected]>, relay=none, delay=178823, status=defer$
    May 2 00:13:54 server1 postfix/smtp[17256]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 00:13:54 server1 last message repeated 3 times
    May 2 00:13:54 server1 postfix/smtp[17256]: AC8BC190061: to=<[email protected]>, relay=none, delay=182823, status=defer$
    May 2 01:20:34 server1 postfix/smtp[20476]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 01:20:34 server1 last message repeated 3 times
    May 2 01:20:34 server1 postfix/smtp[20476]: AC8BC190061: to=<[email protected]>, relay=none, delay=186823, status=defer$
    May 2 02:27:14 server1 postfix/smtp[25200]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 02:27:14 server1 last message repeated 3 times
    May 2 02:27:14 server1 postfix/smtp[25200]: AC8BC190061: to=<[email protected]>, relay=none, delay=190823, status=defer$
    May 2 03:33:53 server1 postfix/smtp[28285]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 03:33:53 server1 last message repeated 3 times

    With another things !


    root@server1:/home/enriquecm# netstat -tap

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost.localdo:32769 *:* LISTEN 6 960/hpiod
    tcp 0 0 localhost.localdo:32770 *:* LISTEN 6 985/python
    tcp 0 0 localhost.localdo:mysql *:* LISTEN 7 195/mysqld
    tcp 0 0 *:81 *:* LISTEN 7 597/ispconfig_http
    tcp 0 0 *:ftp *:* LISTEN 7 690/proftpd: (acce
    tcp 0 0 localhost.localdoma:ipp *:* LISTEN 6 939/cupsd
    tcp 0 0 *:smtp *:* LISTEN 7 334/master
    tcp 0 0 localhost.localdo:32769 localhost.localdo:34308 ESTABLISHED6 960/hpiod
    tcp 0 0 localhost.localdo:34308 localhost.localdo:32769 ESTABLISHED6 985/python
    tcp6 0 0 *:imaps *:* LISTEN 7 075/couriertcpd
    tcp6 0 0 *: pop3s *:* LISTEN 7 116/couriertcpd
    tcp6 0 0 *: pop3 *:* LISTEN 7 093/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 7 052/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 7 633/apache2
    tcp6 0 0 *:webcache *:* LISTEN 7 633/apache2
    tcp6 0 0 *:ssh *:* LISTEN 7 457/sshd
    tcp6 0 0 *:https *:* LISTEN 7 633/apache2
    tcp6 0 0 server1.subelo.com:ssh customer-VER-231-:61605 ESTABLISHED7 733/sshd: pedro
    tcp6 0 2372 server1.subelo.com:ssh customer-VER-231-:62295 ESTABLISHED8 652/sshd: pedro
     
  4. enriquecm

    enriquecm New Member

    mail.log

    /var/log/mail.log

    May 1 22:00:33 server1 postfix/smtp[11026]: AC8BC190061: to=<[email protected]>, relay=none, delay=174822, status=defer$
    May 1 23:07:14 server1 postfix/smtp[12839]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 1 23:07:14 server1 last message repeated 3 times
    May 1 23:07:14 server1 postfix/smtp[12839]: AC8BC190061: to=<[email protected]>, relay=none, delay=178823, status=defer$
    May 2 00:13:54 server1 postfix/smtp[17256]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 00:13:54 server1 last message repeated 3 times
    May 2 00:13:54 server1 postfix/smtp[17256]: AC8BC190061: to=<[email protected]>, relay=none, delay=182823, status=defer$
    May 2 01:20:34 server1 postfix/smtp[20476]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 01:20:34 server1 last message repeated 3 times
    May 2 01:20:34 server1 postfix/smtp[20476]: AC8BC190061: to=<[email protected]>, relay=none, delay=186823, status=defer$
    May 2 02:27:14 server1 postfix/smtp[25200]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 02:27:14 server1 last message repeated 3 times
    May 2 02:27:14 server1 postfix/smtp[25200]: AC8BC190061: to=<[email protected]>, relay=none, delay=190823, status=defer$
    May 2 03:33:53 server1 postfix/smtp[28285]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (por$
    May 2 03:33:53 server1 last message repeated 3 times


    I dont know why it appears [email protected]
    ok im waiting for ure answers
     
  5. falko

    falko Super Moderator Howtoforge Staff

    First you must enable Maildir in ISPConfig (Management -> Server -> Settings -> Email) because you're using Courier as POP3/IMAP daemon.

    Make sure your ISP doesn't block port 25.
     
  6. enriquecm

    enriquecm New Member

    the same !

    I check the port 25 and is correctly

    I put enable Maildir in ISPCONFIG and is the same !
    thanks
     
  7. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    iptables -L
    ? Please send an email to yourself and post the mail log of this here.
     
  8. enriquecm

    enriquecm New Member

    Iptables

    root@server1:/home/enriquecm# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    OK im still waiting for your solution ! :eek:
     
  9. falko

    falko Super Moderator Howtoforge Staff

    How about you trying to find the solution yourself? It's not my system, I didn't set it up, so I don't have to fix it. I'm trying to help you voluntarily. :)

    What about this:
     
  10. enriquecm

    enriquecm New Member

    I send email from [email protected] to [email protected]

    /var/log/mail.log

    May 7 16:06:06 server1 authdaemond.plain: modules="authpam", daemons=5
    May 7 16:06:08 server1 postfix/master[7331]: daemon started -- version 2.2.4, configuration /etc/postfix
    May 7 16:06:09 server1 postfix/qmgr[7346]: 61042190073: from=<[email protected]>, size=782, nrcpt=1 (queue active)
    May 7 16:06:09 server1 postfix/smtp[7416]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (port$
    May 7 16:06:09 server1 last message repeated 3 times
    May 7 16:06:09 server1 postfix/smtp[7416]: 61042190073: to=<[email protected]>, relay=none, delay=1371, status=deferred (con$
    May 7 16:06:18 server1 postfix/master[7331]: terminating on signal 15
    May 7 16:06:18 server1 postfix/master[7729]: daemon started -- version 2.2.4, configuration /etc/postfix
    May 7 16:11:10 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:10 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:10 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=2312, retr=0, time=0
    May 7 16:11:14 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:14 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:14 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:14 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:14 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=2312, retr=0, time=0
    May 7 16:11:14 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 16:11:18 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:18 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:18 server1 courierpop3login: DISCONNECTED, user=enriquejr, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 16:11:19 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:19 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:19 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 16:11:23 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:23 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:23 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 16:11:46 server1 postfix/smtpd[7965]: connect from localhost.localdomain[127.0.0.1]
    May 7 16:11:46 server1 postfix/smtpd[7965]: AE29D190075: client=localhost.localdomain[127.0.0.1]
    May 7 16:11:46 server1 postfix/cleanup[7969]: AE29D190075: message-id=<[email protected]>
    May 7 16:11:46 server1 postfix/qmgr[7736]: AE29D190075: from=<[email protected]>, size=788, nrcpt=1 (queue active)
    May 7 16:11:46 server1 postfix/smtpd[7965]: disconnect from localhost.localdomain[127.0.0.1]
    May 7 16:11:46 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:46 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:46 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 16:11:47 server1 postfix/local[7970]: AE29D190075: to=<[email protected]>, orig_to=<[email protected]>,$
    May 7 16:11:47 server1 postfix/qmgr[7736]: AE29D190075: removed
    May 7 16:11:47 server1 postfix/pickup[7735]: 17DF2190077: uid=10003 from=<enriquejr>
    May 7 16:11:47 server1 postfix/cleanup[7969]: 17DF2190077: message-id=<[email protected]>
    May 7 16:11:47 server1 postfix/qmgr[7736]: 17DF2190077: from=<[email protected]>, size=342, nrcpt=1 (queue activ$
    May 7 16:11:47 server1 postfix/local[7970]: 17DF2190077: to=<admispconfig@localhost>, relay=local, delay=0, status=sent (de$
    May 7 16:11:47 server1 postfix/qmgr[7736]: 17DF2190077: removed
    May 7 16:11:49 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 16:11:49 server1 courierpop3login: LOGIN, user=enriquejr, ip=[::ffff:127.0.0.1]
    May 7 16:11:49 server1 courierpop3login: LOGOUT, user=enriquejr, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Did the mail arrive?
    I would have needed some more lines from the log...
     
  12. enriquecm

    enriquecm New Member

    yes

    yes the mail arrived, with the user enriquejr :rolleyes:

    but with the user ecervera dont arrived :confused:

    where i put more lines from the log ?
     
  13. enriquecm

    enriquecm New Member

    if u ?

    if u say me more lines from the mail.log its only the lines that appears, i erase all the mail.log and then a restart the machine, to check the tests!!
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Then post a log excerpt where you're trying to send a mail to ecervera.
     
  15. enriquecm

    enriquecm New Member

    ecervera user

    /var/log/mail.log

    May 7 19:11:02 server1 authdaemond.plain: modules="authpam", daemons=5
    May 7 19:11:05 server1 postfix/master[7358]: daemon started -- version 2.2.4, configuration /etc/postfix
    May 7 19:11:13 server1 postfix/master[7358]: terminating on signal 15
    May 7 19:11:13 server1 postfix/master[7750]: daemon started -- version 2.2.4, configuration /etc/postfix
    May 7 19:27:53 server1 postfix/qmgr[7765]: CFED319006B: from=<[email protected]>, size=770, nrcpt=1 (queue active)
    May 7 19:27:53 server1 postfix/qmgr[7765]: 8867F19006E: from=<[email protected]>, size=774, nrcpt=1 (queue active)
    May 7 19:27:53 server1 postfix/qmgr[7765]: 13596190072: from=<[email protected]>, size=780, nrcpt=1 (queue active)
    May 7 19:27:54 server1 postfix/smtp[8167]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (port$
    May 7 19:27:54 server1 last message repeated 3 times
    May 7 19:27:54 server1 postfix/smtp[8167]: CFED319006B: to=<[email protected]>, relay=none, delay=152269, status=deferred (c$
    May 7 19:27:54 server1 postfix/smtp[8169]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (port$
    May 7 19:27:54 server1 last message repeated 3 times
    May 7 19:27:54 server1 postfix/smtp[8169]: 8867F19006E: to=<[email protected]>, relay=none, delay=149179, status=deferred (c$
    May 7 19:27:54 server1 postfix/smtp[8170]: connect to homeportal.gateway.2wire.net[192.168.1.254]: Connection refused (port$
    May 7 19:27:54 server1 last message repeated 3 times
    May 7 19:27:54 server1 postfix/smtp[8170]: 13596190072: to=<[email protected]>, relay=none, delay=13785, status=deferred (co$
    May 7 19:29:22 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 19:29:22 server1 courierpop3login: LOGIN, user=ecervera, ip=[::ffff:127.0.0.1]
    May 7 19:29:22 server1 courierpop3login: LOGOUT, user=ecervera, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 19:31:37 server1 postfix/smtpd[8265]: connect from localhost.localdomain[127.0.0.1]
    May 7 19:31:37 server1 postfix/smtpd[8265]: 4E988190075: client=localhost.localdomain[127.0.0.1]
    May 7 19:31:37 server1 postfix/cleanup[8268]: 4E988190075: message-id=<[email protected]>
    May 7 19:31:37 server1 postfix/qmgr[7765]: 4E988190075: from=<[email protected]>, size=787, nrcpt=1 (queue active)
    May 7 19:31:37 server1 postfix/smtpd[8265]: disconnect from localhost.localdomain[127.0.0.1]
    May 7 19:31:37 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
    May 7 19:31:37 server1 courierpop3login: LOGIN, user=ecervera, ip=[::ffff:127.0.0.1]
    May 7 19:31:37 server1 courierpop3login: LOGOUT, user=ecervera, ip=[::ffff:127.0.0.1], top=0, retr=0, time=0
    May 7 19:31:37 server1 procmail[8273]: Suspicious rcfile "/var/www/web1/user/ecervera/.procmailrc"
    May 7 19:31:37 server1 postfix/local[8269]: 4E988190075: to=<[email protected]>, orig_to=<[email protected]>, r$
    May 7 19:31:37 server1 postfix/qmgr[7765]: 4E988190075: removed
     
  16. falko

    falko Super Moderator Howtoforge Staff

    Please post the output of
    Code:
    ls -la /var/www/web1/user/ecervera/
    I guess /var/www/web1/user/ecervera/.procmailrc has wrong permissions.
     
  17. enriquecm

    enriquecm New Member

    Ok ! i do it a lot of test

    well i do it a lot of tests and I think that the problem is not postfix, well my ispconfig give me the bind down

    and i cant ping google.com (i dont have dns)
    i ping one router in the internet

    i restart the service and the bind continues down !
    where i can change my dns and put manually
    :confused:
     
  18. falko

    falko Super Moderator Howtoforge Staff

    This is a completely different problem.
    What's in your /etc/resolv.conf?
    Any BIND related error messages in your logs?
     
  19. NordicAlex

    NordicAlex New Member

    I wonder why you use an email i made for 10 years ago. and still have access

    Can you explain?

     
  20. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    This forum thread is 13 years old. That may explain the 10 year old part.
    Otherwise I did not understand the meaning of your message.
     

Share This Page