Postfix problem

Discussion in 'Server Operation' started by herumor.campos, Mar 29, 2011.

  1. herumor.campos

    herumor.campos New Member

    Hi, i cant get my Postfix SMTP server work great.
    Some domains are refused by sending, and PHP mail() doesnt work.

    Can somebody help me?

    Thats my main.cf file:
    -----------------------------------------

    #soft_bounce = no
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    #default_privs = nobody
    myhostname = mail.domain.com.br # just changed to post
    mydomain = $myhostname
    myorigin = $mydomain

    inet_interfaces = all

    #proxy_interfaces =
    #proxy_interfaces = 1.2.3.4

    mydestination = $myhostname, localhost.$mydomain, localhost

    #local_recipient_maps = unix:passwd.byname $alias_maps
    #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
    #local_recipient_maps =

    unknown_local_recipient_reject_code = 550

    mynetworks_style = host
    #mynetworks = hash:/etc/postfix/network_table

    #relay_domains = $mydestination

    #relayhost = $mydomain
    #relayhost = [gateway.my.domain]
    #relayhost = [mailserver.isp.tld]
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]

    #relay_recipient_maps = hash:/etc/postfix/relay_recipients

    #in_flow_delay = 1s

    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    #recipient_delimiter = +

    #home_mailbox = Mailbox
    #home_mailbox = Maildir/

    #mail_spool_directory = /var/mail
    #mail_spool_directory = /var/spool/mail

    #mailbox_command = /some/where/procmail
    #mailbox_command = /some/where/procmail -a "$EXTENSION"

    #mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

    # local_destination_recipient_limit = 300
    # local_destination_concurrency_limit = 5
    #
    #mailbox_transport = cyrus

    #fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
    #fallback_transport =

    #luser_relay = $[email protected]
    #luser_relay = $[email protected]
    #luser_relay = admin+$local

    #header_checks = regexp:/etc/postfix/header_checks

    #fast_flush_domains = $relay_domains

    #smtpd_banner = $myhostname ESMTP $mail_name
    smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

    append_dot_mydomain = no
    append_at_myorigin = yes
    local_transport = local
    virtual_transport = virtual
    biff = no

    #local_destination_concurrency_limit = 2
    #default_destination_concurrency_limit = 20

    debug_peer_level = 2

    #debug_peer_list = 127.0.0.1
    #debug_peer_list = some.domain

    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
    myorigin = $mydomain
    notify_classes = bounce, delay, resource

    ----------------------------------
    Thanks in advance!!! :)
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in your mail log (in the /var/log/ directory)?
     
  3. herumor.campos

    herumor.campos New Member

    Hi, yes:

    I´m reviewing my DNS settings to be sure.

    Tnx

    ------------------

    [root@CD116572-linux-centos-5-64b-web-sx-7228 log]# vim maillog
    Mar 27 04:09:24 CD116572-linux-centos-5-64b-web-sx-7228 postfix/qmgr[9454]: 66E371A779F: from=<[email protected]>, size=700, nrcpt=1 (queue active)
    Mar 27 04:09:24 CD116572-linux-centos-5-64b-web-sx-7228 postfix/qmgr[9454]: 858B31A7770: from=<[email protected]>, size=684, nrcpt=1 (queue active)
    Mar 27 04:09:24 CD116572-linux-centos-5-64b-web-sx-7228 postfix/smtp[26891]: 66E371A779F: host mx01.sopadeideias.com.br[189.38.85.12] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Mar 27 04:09:24 CD116572-linux-centos-5-64b-web-sx-7228 postfix/smtp[26892]: 858B31A7770: host mx02.sopadeideias.com[189.38.85.13] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Mar 27 04:09:25 CD116572-linux-centos-5-64b-web-sx-7228 postfix/smtp[26891]: 66E371A779F: to=<[email protected]>, relay=mx02.sopadeideias.com.br[189.38.85.13]:25, delay=95016, delays=95015/0.05/0.81/0.13, dsn=4.1.8, status=deferred (host mx02.sopadeideias.com.br[189.38.85.13] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
    Mar 27 04:09:25 CD116572-linux-centos-5-64b-web-sx-7228 postfix/smtp[26892]: 858B31A7770: to=<[email protected]>, relay=mx01.sopadeideias.com[189.38.85.12]:25, delay=94644, delays=94643/0.2/0.64/0.16, dsn=4.1.8, status=deferred (host mx01.sopadeideias.com[189.38.85.12] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
    Mar 27 05:16:04 CD116572-linux-centos-5-64b-web-sx-7228 postfix/qmgr[9454]: 66E371A779F: from=<[email protected]>, size=700, nrcpt=1 (queue active)
    Mar 27 05:16:04 CD116572-linux-centos-5-64b-web-sx-7228 postfix/qmgr[9454]: 858B31A7770: from=<[email protected]>, size=684, nrcpt=1 (queue active)
    Mar 27 05:16:05 CD116572-linux-centos-5-64b-web-sx-7228 postfix/smtp[26351]: 66E371A779F: host mx02.sopadeideias.com.br[189.38.85.13] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Mar 27 05:16:05 CD116572-linux-centos-5-64b-web-sx-7228 postfix/smtp[26352]: 858B31A7770: host mx01.sopadeideias.com[189.38.85.12] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command)

    ------------------
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Do you use a real, existing domain for these settings?

    What are the outputs of
    Code:
    hostname
    and
    Code:
    hostname -f
    ?
     

Share This Page