LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   postfix - host unknown (https://www.linuxquestions.org/questions/linux-software-2/postfix-host-unknown-468007/)

doronunu 07-26-2006 06:06 PM

postfix - host unknown
 
Hi,
i want to setting up my postfix for my domain and for the localhost users.

this is my config of main.cf

Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
mydomain = segalsites.org
inet_interfaces = localhost
mydestination=$myhostname,localhost.$mydomain,localhost,$mydomain
unknown_local_recipient_reject_code = 550
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.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES

when i try :
Code:

echo hi | sendmail -f root root && tail -50 /var/log/maillog > `tty`
i get the next result :
Code:

Jul 27 01:41:50 localhost sendmail[7949]: k6QMfoQL007949: from=root, size=3, class=0, nrcpts=1, msgid=<200607262241.k6QMfoQL007949@mail.segalsites.org>, relay=root@localhost
Jul 27 01:41:50 localhost sendmail[7950]: k6QMfokV007950: from=<root@mail.segalsites.org>, size=282, class=0, nrcpts=1, msgid=<200607262241.k6QMfoQL007949@mail.segalsites.org>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Jul 27 01:41:50 localhost sendmail[7949]: k6QMfoQL007949: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30003, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k6QMfokV007950 Message accepted for delivery)
Jul 27 01:41:51 localhost sendmail[7952]: k6QMfokV007950: to=<root@mail.segalsites.org>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120282, relay=62.219.163.245.segalsites.org., dsn=5.1.2, stat=Host unknown (Name server: 62.219.163.245.segalsites.org.: host not found)
Jul 27 01:41:51 localhost sendmail[7952]: k6QMfokV007950: k6QMfpkV007952: DSN: Host unknown (Name server: 62.219.163.245.segalsites.org.: host not found)
Jul 27 01:41:51 localhost sendmail[7952]: k6QMfpkV007952: to=<root@mail.segalsites.org>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=31525, relay=62.219.163.245.segalsites.org., dsn=5.1.2, stat=Host unknown (Name server: 62.219.163.245.segalsites.org.: host not found)
Jul 27 01:41:51 localhost sendmail[7952]: k6QMfpkV007952: k6QMfpkW007952: return to sender: Host unknown (Name server: 62.219.163.245.segalsites.org.: host not found)
Jul 27 01:41:51 localhost sendmail[7952]: k6QMfpkW007952: to=doronunu, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32549, dsn=2.0.0, stat=Sent
Jul 27 02:02:49 localhost sendmail[15575]: k6QN2npL015575: from=root, size=3, class=0, nrcpts=1, msgid=<200607262302.k6QN2npL015575@mail.segalsites.org>, relay=root@localhost
Jul 27 02:02:49 localhost sendmail[15576]: k6QN2njJ015576: from=<root@mail.segalsites.org>, size=282, class=0, nrcpts=1, msgid=<200607262302.k6QN2npL015575@mail.segalsites.org>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Jul 27 02:02:49 localhost sendmail[15575]: k6QN2npL015575: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30003, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k6QN2njJ015576 Message accepted for delivery)

i can see it has a problem to find the host, but why?

doronunu 07-26-2006 06:34 PM

soled.
my mx record wasnt set properly.

billymayday 07-26-2006 06:34 PM

Try inet_interfaces = all if you want to receive mail anywhere from the local machine btw

Are you actually using postfix? You shouldn't be getting sendmail in your logs if you are (I tried your code and get postfix/qmgr[6771] in mine)


All times are GMT -5. The time now is 10:36 AM.