Postfix - Relay Access Denied

Discussion in 'Server Operation' started by Juddling, Jul 17, 2007.

  1. Juddling

    Juddling New Member

    Hey,
    I have postfix set up and you will find the main configuration below. If I try to send an email from outlook it gives me: 554 Relay Access Denied. My server does have a firewall if that makes a differnce but I've allowed port 25 & 110 for mail. On Outlook I do not use secure for my smtp server.

    Configuration:

    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5

    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop

    html_directory = no
    manpage_directory = /usr/share/man

    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES

    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $mydomain
    unknown_local_recipient_reject_code = 450
    smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    reject_unauth_destination


    The configuration is a mess because I have editted it trying to solve this problem. Any solutions would be greatly appreciated, if you need more infomation on the porblem, please ask.

    Thanks,
    James
     
  2. morenz

    morenz New Member

    Hi,
    how did you configure the mynetworks parameter in /etc/postfix/main.cf?
    You should add the netmask that you use to send emails, like 192.168.1.0/24

    Regards,
    Morenz
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Please enable "Server requires authentication." in your email client.
     
  4. Juddling

    Juddling New Member

    No errors now

    Thanks so much it's now sending mail.
     

Share This Page