Mail: Relay access denied

Discussion in 'Installation/Configuration' started by _X_, Oct 14, 2008.

  1. _X_

    _X_ New Member

    adding:
    relay_domains = $mydestination
    to main.cf
    doesn't solve the problem
     
  2. _X_

    _X_ New Member

    updated ISPConfig from 2.2.26 to 2.2.27 with no problems but Relay access denied problem is still there
     
  3. _X_

    _X_ New Member

    new info:

    telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 domain.info ESMTP Postfix
    ehlo server1.com
    250-domain.info
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    auth login
    334 xxxxxxxxxxxx
    user1
    334 xxxxxxxxxxxx
    pass
    535 5.7.8 Error: authentication failed: authentication failure
     
  4. _X_

    _X_ New Member

    found out that i'm missing /etc/pam.d/smtp file

    is that normal and how do i create it?
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Please try
    Code:
    adduser postfix sasl 
    /etc/init.d/postfix restart
    /etc/init.d/saslauthd start
     
  6. _X_

    _X_ New Member

    adduser postfix sasl
    The user `postfix' is already a member of `sasl'.

    /etc/init.d/postfix restart
    * Stopping Postfix Mail Transport Agent postfix [ OK ]
    * Starting Postfix Mail Transport Agent postfix [ OK ]

    /etc/init.d/saslauthd start
    * Starting SASL Authentication Daemon saslauthd [ OK ]


    and the problem is still the same :(

    /etc/pam.d/ls -l
    -rw-r--r-- 1 root root 182 2007-02-20 15:05 atd
    -rw-r--r-- 1 root root 384 2008-04-03 03:02 chfn
    -rw-r--r-- 1 root root 581 2008-04-03 03:02 chsh
    -rw-r--r-- 1 root root 392 2008-09-28 14:56 common-account
    -rw-r--r-- 1 root root 484 2008-09-28 14:56 common-auth
    -rw-r--r-- 1 root root 1571 2008-09-28 14:56 common-password
    -rw-r--r-- 1 root root 372 2008-09-28 14:56 common-session
    -rw-r--r-- 1 root root 289 2008-04-08 20:12 cron
    -rw-r--r-- 1 root root 144 2008-02-09 06:48 imap
    -rw-r--r-- 1 root root 3224 2008-04-03 03:02 login
    -rw-r--r-- 1 root root 520 2008-05-16 17:18 other
    -rw-r--r-- 1 root root 92 2008-04-03 03:02 passwd
    -rw-r--r-- 1 root root 145 2008-02-09 06:48 pop3
    -rw-r--r-- 1 root root 168 2007-10-04 22:47 ppp
    -rw-r--r-- 1 root root 370 2008-02-21 05:51 proftpd
    -rw-r--r-- 1 root root 1272 2008-05-14 16:37 sshd
    -rw-r--r-- 1 root root 2305 2008-04-03 03:02 su
    -rw-r--r-- 1 root root 56 2008-05-15 02:44 sudo
     
    Last edited: Oct 17, 2008
  7. _X_

    _X_ New Member

    here is also this:
    #postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    inet_interfaces = all
    inet_protocols = all
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    mydestination = /etc/postfix/local-host-names
    myhostname = domain.info
    mynetworks = 127.0.0.0/8
    myorigin = /etc/mailname
    readme_directory = no
    recipient_delimiter = +
    relayhost =
    smtp_tls_note_starttls_offer = yes
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP $mail_name
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    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_database = btree:${data_directory}/smtpd_scache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    /etc/init.d/postfix restart
     
  9. _X_

    _X_ New Member

    did that (several times :) ) but result is the same :(
     
  10. _X_

    _X_ New Member

    after postconf-d
    i saw:
    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = no

    ??? how come?
     
  11. _X_

    _X_ New Member

    :eek:

    well ... this is the moment when I'm starting to grow long gray ears and tail ....

    there was error in main.cf:
    smtpd_recipients_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination

    should be:
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination

    without s in recipients

    actualy postconf -d helped because i saw:
    smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

    without "permit_sasl_authenticated" part

    !!!SOLVED!!!
     

Share This Page