Need help relay smtp based on perfect server 5.1

Discussion in 'HOWTO-Related Questions' started by c0l3s, Oct 18, 2008.

  1. c0l3s

    c0l3s New Member

    hi,

    i got some problem that i can't solve..

    i'm installing centos 5.1 based on the perfect server
    and i used postfix,dovecot and ispconfig

    everything was went well.But i need to setup my postfix to my isp smtp relay

    and my isp doesn't need username n password for using their smtp relay

    but for first i'm following "Set Up Postfix For Relaying Emails Through Another Mailserver" using gmail.com

    and it's failed

    and now i want to using my isp relay...and i already set all up but still failed

    here some info :

    [root@ns ~]# postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    home_mailbox = maildir/
    html_directory = no
    inet_interfaces = all
    mail_owner = postfix
    mailbox_command =
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = /etc/postfix/local-host-names
    myhostname = www.xxx.com
    mynetworks = 127.0.0.0/8
    newaliases_path = /usr/bin/newaliases.postfix
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    relayhost = smtp.biz.net.id
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
    smtp_sasl_security_options =
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_sasl_auth_enable = 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_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    unknown_local_recipient_reject_code = 550

    [root@ns ~]# cat /etc/postfix/sasl_passwd
    smtp.biz.net.id : <----no username n pass(because my isp said that no username n pass)


    [root@ns ~]# telnet 10.1.10.100 25
    Trying 10.1.10.100...
    Connected to ns.xxx.com (10.1.10.100).
    Escape character is '^]'.
    220 www.xxx.com ESMTP Postfix

    from client :
    c\:>telnet 10.1.10.100 25

    220 www.xxx.com ESMTP Postfix

    when i'm tryin on outlook
    with outgoing = 10.1.10.100

    it's come error like :

    The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'c0l3s@yahoo.com'. Subject 'coba`', Account: 'coba@xxx.com', Server: '10.1.10.100', Protocol: SMTP, Server Response: '554 5.7.1 <c0l3s@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79

    can anyone guild me about this..so i can relay my mail server to my isp relay that doesn't need username n password
    and so i can send email to outside...because when i'm sending to another email with the same domain it's works but to outside it's failed


    Thx


    Rgds,
    c0l3s
     
  2. falko

    falko Super Moderator

    Comment out
    Code:
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
    smtp_sasl_security_options =
    and restart Postfix.
     
  3. c0l3s

    c0l3s New Member

    hi falko,


    i already comment out the code

    so now:

    #postconf -n

    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    debug_peer_level = 2
    home_mailbox = maildir/
    html_directory = no
    inet_interfaces = all
    mail_owner = postfix
    mailbox_command =
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = $mydomain, $myhostname
    mydomain = xxx.com
    myhostname = mail.xxx.com
    mynetworks = 127.0.0.0/8
    newaliases_path = /usr/bin/newaliases.postfix
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    relayhost = smtp.biz.net.id
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_sasl_auth_enable = 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_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    unknown_local_recipient_reject_code = 550

    But it's still failed. can u help me about this

    Thank for ur reply and i really appreciate it...


    Thx
     
  4. falko

    falko Super Moderator

    What's in the mail log now?
     

Share This Page