Postfix reject mail

Discussion in 'General' started by alexillsley, May 10, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  2. falko

    falko Super Moderator ISPConfig Developer

    You must enable "Server requires authentication." in your email client.
     
  3. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  4. bluethunder82

    bluethunder82 Member

    You need to make sure you use the 'user name' not the email name. Ie. web1_bluethunder82 instead of just bluethunder82.

    Hope that works.
     
  5. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  6. bluethunder82

    bluethunder82 Member

    Sorry I may have been unclear. When you enable "Server Requires Authentication" you need to use your username not just the email name.

    What is the output when you telnet to port 25 on your server?

    Code:
    telnet localhost 25
    then
    Code:
    ehlo localhost
     
  7. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  8. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  9. falko

    falko Super Moderator ISPConfig Developer

    First check if your server got blacklisted: http://www.mxtoolbox.com/blacklists.aspx
    Second: are you absolutely sure you enabled "Server requires authentication." in your email client? Because that's exactly the error you get if you didn't.
     
  10. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    ----- expired ----
     
    Last edited: Nov 15, 2010
  11. falko

    falko Super Moderator ISPConfig Developer

    Can you comment out the virtual_alias_domains line and restart Postfix?
     
  12. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Thanks, but im still getting that error:(
     
  13. falko

    falko Super Moderator ISPConfig Developer

    Can you post the output of
    Code:
    postconf -n
    ?
     
  14. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Sure :
    Code:
    Last login: Mon May 14 21:32:14 2007 from 192.168****
    Have a lot of fun...
    server1:~ # postconf -n
    alias_maps = hash:/etc/aliases
    biff = no
    broken_sasl_auth_clients = yes
    canonical_maps = hash:/etc/postfix/canonical
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/lib/postfix
    debug_peer_level = 2
    defer_transports =
    disable_dns_lookups = no
    disable_mime_output_conversion = no
    home_mailbox = Maildir/
    html_directory = /usr/share/doc/packages/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mail_owner = postfix
    mail_spool_directory = /var/mail
    mailbox_command =
    mailbox_size_limit = 0
    mailbox_transport =
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    masquerade_classes = envelope_sender, header_sender, header_recipient
    masquerade_domains =
    masquerade_exceptions = root
    message_size_limit = 10240000
    mydestination = /etc/postfix/local-host-names
    mydomain = *******
    myhostname = server1.$mydomain
    mynetworks = 127.0.0.0/8
    mynetworks_style = subnet
    newaliases_path = /usr/bin/newaliases
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    relay_domains = $mydestination
    relayhost =
    relocated_maps = hash:/etc/postfix/relocated
    sample_directory = /usr/share/doc/packages/postfix/samples
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    sendmail_path = /usr/sbin/sendmail
    setgid_group = maildrop
    smtp_sasl_auth_enable = no
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP MAIL SERVER
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,rejec                                             t_unauth_destination
    smtpd_sasl_auth_enable = no
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    strict_8bitmime = no
    strict_rfc821_envelopes = no
    tls_random_source = dev:/dev/urandom
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 550
    virtual_alias_domains = hash:/etc/postfix/virtual
    server1:~ #
    
    Thanks again for all your help:)
    Does the smtp use the same authentication as the pop3 in the virtusertable? Maybe is to do with that?

    Thanks,
    Alex
     
    Last edited: Aug 28, 2007
  15. pjo

    pjo New Member

    Did you try to set

    smtpd_sasl_auth_enable = yes

    ?


    BR,

    Johannes
     
  16. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    SASL dosent work on my server for some reason i kept getting error's, i disabled then i could send emails and it all worked for a while till now:(
     
  17. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    and disable virtual_alias_domains, relocated_maps, sender_canonical_maps in /etc/postfix/main.cf. Restart Postfix afterwards.
     
  18. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Hi,
    its still failing:( I can give you an email account if you want test it for yourself. Any more ideas:(

    Thanks,
    Alex
     
  19. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    postconf -n
    now?
     
  20. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Heres the output:
    Code:
    server1:~ # postconf -n
    alias_maps = hash:/etc/aliases
    biff = no
    broken_sasl_auth_clients = yes
    canonical_maps = hash:/etc/postfix/canonical
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/lib/postfix
    debug_peer_level = 2
    defer_transports =
    disable_dns_lookups = no
    disable_mime_output_conversion = no
    home_mailbox = Maildir/
    html_directory = /usr/share/doc/packages/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mail_owner = postfix
    mail_spool_directory = /var/mail
    mailbox_command =
    mailbox_size_limit = 0
    mailbox_transport =
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    masquerade_classes = envelope_sender, header_sender, header_recipient
    masquerade_domains =
    masquerade_exceptions = root
    message_size_limit = 10240000
    mydestination = /etc/postfix/local-host-names
    mydomain = *********
    myhostname = server1.$mydomain
    mynetworks = 127.0.0.0/8
    mynetworks_style = subnet
    newaliases_path = /usr/bin/newaliases
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    relay_domains = $mydestination
    relayhost =
    sample_directory = /usr/share/doc/packages/postfix/samples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = maildrop
    smtp_sasl_auth_enable = no
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_banner =  ***********
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = no
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    strict_8bitmime = no
    strict_rfc821_envelopes = no
    tls_random_source = dev:/dev/urandom
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 550
    server1:~ #
    
    Thanks again for helping :)
     
    Last edited: Aug 28, 2007

Share This Page