Question regarding sendmail AUTH / Relaying denied

Discussion in 'Installation/Configuration' started by wonka, Mar 1, 2007.

  1. wonka

    wonka New Member

    Hi,

    I´m using ISPConfig 2.2.10 with Centos 4.4 and sendmail 8.13.1. I´ve been trying to configure SMTP auth so any user that would like to use the server for sending mails anywhere should authenticate first with its POP3 login.

    I´ve followed the tutorials, and the suggestions from the forum, but I´m stuck where the user can only send mail to local accounts and when trying to send to another domain (i.e. gmail, hotmail) it gets the following error:

    reject=550 5.7.1 <[email protected]>... Relaying denied, IP name lookup failed [192.168.1.50]

    Of course if I add

    192.168.1.50 RELAY

    to /etc/mail/access, i get no message and then the user can send. But my question is, isn't the SMTP auth option precisely a way to avoid entering each IP address to the /etc/mail/access file so any user can send mails as long as the user authenticates? Or is it that even if I define SMTP auth I should include in /etc/mail/access all the IPs from the users that are going to use the server?

    By the way, when I do:

    testsaslauthd -u web1_user -p password

    I get "OK Success" so it seems the SASL config is working. And also, if I do

    telnet localhost 25
    EHLO localhost

    I can see 250 AUTH LOGIN PLAIN, so it seems the config is also in place.

    Thank you and regards,

    Edo
     
  2. edge

    edge Active Member Moderator

    Did you enable "My outgoing server (SMTP) requites authentication" in your email client?
     
  3. wonka

    wonka New Member

    Yes, I enabled that option at the e-mail client.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    The problem is that your mail server "sends" his local IP address instead of your router's public IP address.
    What's in /etc/postfix/main.cf?
     
  5. wonka

    wonka New Member

    The mail server is using a public IP address. The IP that the log shows is the address of the PC where the email is sent using the mail server. If I use a public IP address on the PC, I get the same error, but with different IP:

    reject=550 5.7.1 <[email protected]>... Relaying denied, IP name lookup failed [public_ip_of_PC_that_sends_the_email]
     
  6. falko

    falko Super Moderator Howtoforge Staff

Share This Page