LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2006, 06:06 PM   #1
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
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?

Last edited by doronunu; 07-26-2006 at 06:12 PM.
 
Old 07-26-2006, 06:34 PM   #2
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Original Poster
Rep: Reputation: 15
soled.
my mx record wasnt set properly.
 
Old 07-26-2006, 06:34 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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)

Last edited by billymayday; 07-26-2006 at 06:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Host BH_Exeter Linux - General 8 04-05-2006 01:44 PM
i m getting the error unknown host while im pinging with the host name gunjan thakkar Linux - General 2 12-14-2004 01:19 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM
Unknown host nishi_k_79 Linux - Networking 2 04-19-2003 07:45 AM
Unknown Host mainyeti Linux - Newbie 7 07-29-2001 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration