Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclamation Post Fix sends email but cannot receive...Big problem..helo

    hello guys ive just setted up ubuntu LAMP server package and i was really impressed, everything worked perfectly. I then install webmin and setted up postfix and dovecot (for IMAP and POP3)......

    But am now having a emails are coming through, they all bounce back (even when i tested sending to root@XXX.XXX.XXX.XXX (thats my ip) .... it didnt come, but i was able to send mails through webmin and i received it without any problem i am also able to send mail to (from webmin) and it went i am unsure of where the problem also not able to access the mails using outlook...eventhough dovecot is working well.........The website opens perfectly.

    I dont know what step ive missed.......heres my postfix config file:

    # See /usr/share/postfix/ for a commented, more complete version

    # Debian specific: Specifying a file name will cause the first
    # line of that file to be used as the name. The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname

    myhostname = $mydomain

    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

    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
    smtpd_sasl_security_options = noanonymous

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    mydestination = $myhostname, localhost.$mydomain, $mydomain
    mynetworks =,
    mailbox_command =
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_protocols = all
    myorigin = /etc/mailname
    broken_sasl_auth_clients = yes
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    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/
    inet_interfaces = all

    Umm....any help will be very welcomed......also also...

    telnet localhost 25 from terminal give this:

    Connected to localhost.
    Escape character is '^]'.
    220 ESMTP Postfix (Ubuntu)

    NOTE: ive changed instances of my domain name to all mydomains are valid TLD domain names..

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    have you checked your mail logs, /var/log/ mail.error mail.warn

    also have you tried to send an email thru telnet
    How to Send Email Using Telnet - wikiHow

  3. #3
    Hi when i tried sending mail from telnet it block it....saying...

    Escape character is '^]'.
    220 ESMTP Postfix (Ubuntu)
    250 Ok
    554 <>: Relay access denied

  4. $spacer_open
  5. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    you said its sending fine, so you need to check the reverse of what you tried, unless your machine is going to be the final destination for

    reverse the emails and report back results

  6. #5
    ok will try right away....brb

  7. #6
    HEllo i did that and it ended with:

    PHP Code:
    354 End data with <CR><LF>.<CR><LF>
    some test message here <CR><LF>.<CR><LF>
    250 Okqueued as 977901EE4045
    and i was able to get the email through webmin and also through squirell mail which is setted up.......

    ummm.....dunno wat the problem is...

  8. #7
    so if i send from anywhere ( or it still dosent come...... could firewall have anything to do with this?....
    Last edited by samuelodofin; 09-17-2007 at 08:20 PM. Reason: typo

  9. #8
    Hi thanks, i figured out the ports 143 and 953 were blocked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts