HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Postfix problem (http://www.howtoforge.com/forums/showthread.php?t=52067)

herumor.campos 29th March 2011 04:20

Postfix problem
 
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 = $user@other.host
#luser_relay = $local@other.host
#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!!! :)

falko 29th March 2011 07:45

Are there any errors in your mail log (in the /var/log/ directory)?

herumor.campos 29th March 2011 07:52

Hi, yes:

Im 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=<root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>, size=700, nrcpt=1 (queue active)
Mar 27 04:09:24 CD116572-linux-centos-5-64b-web-sx-7228 postfix/qmgr[9454]: 858B31A7770: from=<root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>, 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 <root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>: 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 <root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>: 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=<diego@sopadeideias.com.br>, 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 <root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>: 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=<diego@sopadeideias.com>, 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 <root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>: 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=<root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>, size=700, nrcpt=1 (queue active)
Mar 27 05:16:04 CD116572-linux-centos-5-64b-web-sx-7228 postfix/qmgr[9454]: 858B31A7770: from=<root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>, 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 <root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>: 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 <root@CD116572-linux-centos-5-64b-web-sx-7228.localdomain>: Sender address rejected: Domain not found (in reply to RCPT TO command)

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

falko 29th March 2011 12:32

Quote:

myhostname = mail.domain.com.br # just changed to post
mydomain = $myhostname
myorigin = $mydomain
Do you use a real, existing domain for these settings?

What are the outputs of
Code:

hostname
and
Code:

hostname -f
?


All times are GMT +2. The time now is 21:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.