
Unrecognized host name when sending mail via 'mailx'
X-No-Archive
Hi NG,
My Name is Herbert Hackelsberger and I am from Austria.
I have configured sendmail version 8.13.4
($Sendmail: debproto.mc,v 8.13.4 2005-06-03 16:49:22 cowboy Exp $)
to accept and deliver messages to my personal domain 'herbertsoftware.at'
Operating System: Debian 3.1-r1
Sending mail works via
telnet 62.99.185.67 25
and via Outlook Express when using SMTP Server 62.99.185.67 (RELAY limited
ot 62.99.185.66)
But when I send an email with 'mailx -s "Test" herbert.software [at] gmx.at'
I get the following error message in the console:
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
Can't send mail: sendmail process failed with error code 68
/var/log/mail.log displays:
Feb 20 16:07:24 ibmpcserver330 sendmail[1163]: k1KF7On0001163:
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
Feb 20 16:07:25 ibmpcserver330 sendmail[1163]: k1KF7On0001163: from=root,
size=48, class=0, nrcpts=0,
msgid=<200602201507.k1KF7On0001163 [at] ibmpcserver330.herbertsoftware.at>,
relay=root [at] localhost
Feb 20 16:07:25 ibmpcserver330 sendmail[1163]: k1KF7On0001163:
k1KF7On1001163: DSN: herbert.software [at] gmx.at... Unrecognized host name
gmx.at.
Feb 20 16:07:25 ibmpcserver330 sendmail[1163]: k1KF7On1001163: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31072, dsn=2.0.0,
stat=Sent
MX Records are:
host -t mx herbertsoftware.at
herbertsoftware.at mail is handled by 10 ibmpcserver330.herbertsoftware.at.
herbertsoftware.at mail is handled by 20 pentium90.herbertsoftware.at.
Info: pentium90.herbertsoftware.at is not yet set up as backup queue, and no
sendmail daemon is running on this machine.
I am also running a BIND server and checked herbertsoftware.at with
http://www.dnsreport.com
/etc/resolv.conf contains
nameserver 192.168.30.2
search herbertsoftware.at
Sending Mail in combination with PHP mail() feature also does not work.
If I use this combination /var/log/mail.log tells me:
Feb 20 15:40:40 ibmpcserver330 sendmail[1091]: k1KEeeo6001091:
from=www-data, size=138, class=0, nrcpts=0,
msgid=<200602201440.k1KEeeo6001091 [at] ibmpcserver330.herbertsoftware.at>,
relay=www-data [at] localhost
Feb 20 15:40:40 ibmpcserver330 sendmail[1091]: k1KEeeo6001091:
k1KEeeo7001091: DSN: herbert.software [at] gmx.at... Unrecognized host name
gmx.at.
Feb 20 15:40:40 ibmpcserver330 sendmail[1091]: k1KEeeo7001091: to=www-data,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31162, dsn=2.0.0,
stat=Sent
Here is my sendmail.mc file: (I removed all comments and Lines beginning
with # or dnl)
divert(-1)dnl
divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.4-3 2005-06-03 16:49:22 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
undefine(`confHOST_STATUS_DIRECTORY')dnl
FEATURE(`no_default_msa')dnl
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restric texpand,nobodyre
turn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`access_db', , `skip')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`herbertsoftware.at')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`relay_entire_domain')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
If more information is required, please let me know.
It looks from the Log file, like it is a DNS problem, but I haven't found
any problem in my bind config. Reverse and forward resolving works.
Best regards,
Herbert Hackelsberger
Re: Unrecognized host name when sending mail via 'mailx'
HI
Herbert Hackelsberger wrote:
> X-No-Archive
>
>
> Hi NG,
> My Name is Herbert Hackelsberger and I am from Austria.
Nothing wrong with that :-)
....
>
> Feb 20 16:07:24 ibmpcserver330 sendmail[1163]: k1KF7On0001163:
> herbert.software [at] gmx.at... Unrecognized host name gmx.at.
what shows up with
dig gmx.at
cheers
Erich
> Feb 20 16:07:25 ibmpcserver330 sendmail[1163]: k1KF7On0001163: from=root,
> size=48, class=0, nrcpts=0,
> msgid=<200602201507.k1KF7On0001163 [at] ibmpcserver330.herbertsoftware.at>,
> relay=root [at] localhost
> Feb 20 16:07:25 ibmpcserver330 sendmail[1163]: k1KF7On0001163:
> k1KF7On1001163: DSN: herbert.software [at] gmx.at... Unrecognized host name
> gmx.at.
> Feb 20 16:07:25 ibmpcserver330 sendmail[1163]: k1KF7On1001163: to=root,
> delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31072, dsn=2.0.0,
> stat=Sent
>
Re: Unrecognized host name when sending mail via 'mailx'
> > Feb 20 16:07:24 ibmpcserver330 sendmail[1163]: k1KF7On0001163:
> > herbert.software [at] gmx.at... Unrecognized host name gmx.at.
>
> what shows up with
>
> dig gmx.at
>
> cheers
>
> Erich
>
<snip>
Thanks for the prompt answer.
I get the following output:
; <<>> DiG 9.2.4 <<>> gmx.at
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24596
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;gmx.at. IN A
;; ANSWER SECTION:
gmx.at. 34785 IN A 213.165.65.100
;; AUTHORITY SECTION:
gmx.at. 33981 IN NS dns.gmx.net.
gmx.at. 33981 IN NS ns.schlund.de.
;; ADDITIONAL SECTION:
ns.schlund.de. 61401 IN A 195.20.224.97
dns.gmx.net. 6207 IN A 213.165.64.1
;; Query time: 56 msec
;; SERVER: 192.168.30.2#53(192.168.30.2)
;; WHEN: Mon Feb 20 17:34:00 2006
;; MSG SIZE rcvd: 124
Best regards,
Herbert Hackelsberger
Re: Unrecognized host name when sending mail via 'mailx'
Herbert Hackelsberger wrote:
> [...]
> I have configured sendmail version 8.13.4
> ($Sendmail: debproto.mc,v 8.13.4 2005-06-03 16:49:22 cowboy Exp $)
>
> to accept and deliver messages to my personal domain 'herbertsoftware.at'
> Operating System: Debian 3.1-r1
>
> Sending mail works via
>
> telnet 62.99.185.67 25
> and via Outlook Express when using SMTP Server 62.99.185.67 (RELAY limited
> ot 62.99.185.66)
>
> But when I send an email with 'mailx -s "Test" herbert.software [at] gmx.at'
> I get the following error message in the console:
>
> herbert.software [at] gmx.at... Unrecognized host name gmx.at.
> Can't send mail: sendmail process failed with error code 68
Standard stupid questions for warm up:
0) Do you have a permanent internet connection? [
1) Does "nslookup -type=mx gmx.at" reports expectected results on your
system?
Suggested test command:
(echo subject: test; echo)|/usr/sbin/sendmail -v herbert.software [at] gmx.at
[it should show you SMTP session between MSA and *local* sendmail daemon
at 127.0.0.1:25 '
> [...]
Re: Unrecognized host name when sending mail via 'mailx'
> Standard stupid questions for warm up:
> 0) Do you have a permanent internet connection? [
Yes, my Prestige 660R-I has got an uptime of 349 hours.
> 1) Does "nslookup -type=mx gmx.at" reports expectected results on your
> system?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nslookup -type=mx gmx.at
Server: 192.168.30.2
Address: 192.168.30.2#53
Non-authoritative answer:
gmx.at mail exchanger = 10 mx0.gmx.de.
gmx.at mail exchanger = 10 mx0.gmx.net.
Authoritative answers can be found from:
gmx.at nameserver = ns.schlund.de.
gmx.at nameserver = dns.gmx.net.
ns.schlund.de internet address = 195.20.224.97
dns.gmx.net internet address = 213.165.64.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
That looks ok.
>
> Suggested test command:
> (echo subject: test; echo)|/usr/sbin/sendmail -v herbert.software [at] gmx.at
>
> [it should show you SMTP session between MSA and *local* sendmail daemon
> at 127.0.0.1:25 '
I run this command with user herbert and root. First the output of user
herbert in the console:
User herbert:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
herbert [at] ibmpcserver330:~$ (echo subject: test; echo)|/usr/sbin/sendmail -v
herbert.software [at] gmx.at
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
/home/familie/herbert/dead.letter... Saved message in
/home/familie/herbert/dead.letter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
The file ~herbert/dead.letter contains:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
From herbert Tue Feb 21 10:07:06 2006
Return-Path: <herbert>
Received: (from herbert [at] localhost)
by ibmpcserver330.herbertsoftware.at (8.13.4/8.13.4/Submit) id
k1L976RG0
02935
for herbert.software [at] gmx.at; Tue, 21 Feb 2006 10:07:06 +0100
Date: Tue, 21 Feb 2006 10:07:06 +0100
From: Herbert Hackelsberger <herbert>
Message-Id: <200602210907.k1L976RG002935 [at] ibmpcserver330.herbertsoftware.at>
subject: test
To: undisclosed-recipients:;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~+
/var/log/mail.log contains:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
~~~~~~
Feb 21 10:07:06 ibmpcserver330 sendmail[2935]: k1L976RG002935:
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
Feb 21 10:07:06 ibmpcserver330 sendmail[2935]: k1L976RG002935: from=herbert,
size=15, class=0, nrcpts=0,
msgid=<200602210907.k1L976RG002935 [at] ibmpcserver330.herbertsoftware.at>,
relay=herbert [at] localhost
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
~~~~~~~
Interesting - I received the following mail delivery failed report.
Especially the section "X-Actual-Recipient: rfc822; "553 Unrecognized host
name "gmx.at. [at] ibmpcserver330.herbertsoftware.at"
is very strange. Does this mean, I have set up something non RFC 822
compliant? Therefore I will check RFC822 immediately.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
>From smmsp Tue Feb 21 10:05:26 2006
Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
by ibmpcserver330.herbertsoftware.at (8.13.4/8.13.4/Submit) id
k1L95QWJ002921;
Tue, 21 Feb 2006 10:05:26 +0100
Date: Tue, 21 Feb 2006 10:05:26 +0100
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200602210905.k1L95QWJ002921 [at] ibmpcserver330.herbertsoftware.at>
To: root
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="k1L95QWJ002921.1140512726/ibmpcserver330.herbertso ftware.at"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--k1L95QWJ002921.1140512726/ibmpcserver330.herbertsoftware.a t
The original message was received at Tue, 21 Feb 2006 10:05:26 +0100
from root [at] localhost
----- The following addresses had permanent fatal errors -----
herbert.software [at] gmx.at
----- Transcript of session follows -----
553 5.1.2 herbert.software [at] gmx.at... Unrecognized host name gmx.at.
--k1L95QWJ002921.1140512726/ibmpcserver330.herbertsoftware.a t
Content-Type: message/delivery-status
Reporting-MTA: dns; ibmpcserver330.herbertsoftware.at
Arrival-Date: Tue, 21 Feb 2006 10:05:26 +0100
Final-Recipient: RFC822; herbert.software [at] gmx.at
X-Actual-Recipient: rfc822; "553 Unrecognized host name
"gmx.at. [at] ibmpcserver330.herbertsoftware.at
Action: failed
Status: 5.1.2
Last-Attempt-Date: Tue, 21 Feb 2006 10:05:26 +0100
--k1L95QWJ002921.1140512726/ibmpcserver330.herbertsoftware.a t
Content-Type: message/rfc822
Return-Path: <root>
Received: (from root [at] localhost)
by ibmpcserver330.herbertsoftware.at (8.13.4/8.13.4/Submit) id
k1L95QWI002921
for herbert.software [at] gmx.at; Tue, 21 Feb 2006 10:05:26 +0100
Date: Tue, 21 Feb 2006 10:05:26 +0100
From: root <root>
Message-Id: <200602210905.k1L95QWI002921 [at] ibmpcserver330.herbertsoftware.at>
subject: test
To: undisclosed-recipients:;
--k1L95QWJ002921.1140512726/ibmpcserver330.herbertsoftware.a t--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
~~~~~+
Now I ran the command as user root.
console output is different:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(echo subject: test; echo)|/usr/sbin/sendmail -v herbert.software [at] gmx.at
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
root... Connecting to local...
root... Sent
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/log/mail.log contains:
~~~~~~~~~~~~~~~~~
Feb 21 10:29:50 ibmpcserver330 sendmail[2999]: k1L9Tnq6002999:
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
Feb 21 10:29:50 ibmpcserver330 sendmail[2999]: k1L9Tnq6002999: from=root,
size=15, class=0, nrcpts=0,
msgid=<200602210929.k1L9Tnq6002999 [at] ibmpcserver330.herbertsoftware.at>,
relay=root [at] localhost
Feb 21 10:29:50 ibmpcserver330 sendmail[2999]: k1L9Tnq6002999:
k1L9Tnq7002999: DSN: herbert.software [at] gmx.at... Unrecognized host name
gmx.at.
Feb 21 10:29:50 ibmpcserver330 sendmail[2999]: k1L9Tnq7002999: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31039, dsn=2.0.0,
stat=Sent
Mail delivery failed report is:
~~~~~~~~~~~~~~~~~~~
Message 1:
From MAILER-DAEMON Tue Feb 21 10:29:50 2006
>From smmsp Tue Feb 21 10:29:50 2006
Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
by ibmpcserver330.herbertsoftware.at (8.13.4/8.13.4/Submit) id
k1L9Tnq7002999;
Tue, 21 Feb 2006 10:29:50 +0100
Date: Tue, 21 Feb 2006 10:29:50 +0100
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200602210929.k1L9Tnq7002999 [at] ibmpcserver330.herbertsoftware.at>
To: root
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="k1L9Tnq7002999.1140514190/ibmpcserver330.herbertso ftware.at"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--k1L9Tnq7002999.1140514190/ibmpcserver330.herbertsoftware.a t
The original message was received at Tue, 21 Feb 2006 10:29:50 +0100
from root [at] localhost
----- The following addresses had permanent fatal errors -----
herbert.software [at] gmx.at
----- Transcript of session follows -----
553 5.1.2 herbert.software [at] gmx.at... Unrecognized host name gmx.at.
--k1L9Tnq7002999.1140514190/ibmpcserver330.herbertsoftware.a t
Content-Type: message/delivery-status
Reporting-MTA: dns; ibmpcserver330.herbertsoftware.at
Arrival-Date: Tue, 21 Feb 2006 10:29:50 +0100
Final-Recipient: RFC822; herbert.software [at] gmx.at
X-Actual-Recipient: rfc822; "553 Unrecognized host name
"gmx.at. [at] ibmpcserver330.herbertsoftware.at
Action: failed
Status: 5.1.2
Last-Attempt-Date: Tue, 21 Feb 2006 10:29:50 +0100
--k1L9Tnq7002999.1140514190/ibmpcserver330.herbertsoftware.a t
Content-Type: message/rfc822
Return-Path: <root>
Received: (from root [at] localhost)
by ibmpcserver330.herbertsoftware.at (8.13.4/8.13.4/Submit) id
k1L9Tnq6002999
for herbert.software [at] gmx.at; Tue, 21 Feb 2006 10:29:50 +0100
Date: Tue, 21 Feb 2006 10:29:50 +0100
From: root <root>
Message-Id: <200602210929.k1L9Tnq6002999 [at] ibmpcserver330.herbertsoftware.at>
subject: test
To: undisclosed-recipients:;
--k1L9Tnq7002999.1140514190/ibmpcserver330.herbertsoftware.a t--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
I ran the command
lsof -i :25 +r
output was every time:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail- 937 root 4u IPv4 155227 TCP *:smtp (LISTEN)
=======
even when I sent a message.
I am sorry, but I did not really understand how to trace:
> [it should show you SMTP session between MSA and *local* sendmail daemon
> at 127.0.0.1:25 '
Any comments are welcome :-)
Best regards,
Herbert Hackelsberger
Re: Unrecognized host name when sending mail via 'mailx'
Herbert Hackelsberger wrote:
> [...]
Yet another set of test commands:
0) recipient canonification with DNS tracking
echo '3 h.s [at] gmx.at' | sendmail -Ac -bt -d8.20
1) As above but with DNS tracking turned on
(echo subject: test; echo)|/usr/sbin/sendmail -d8.20 -v h.s [at] gmx.at
You can try removing DNS lookups from submit.cf (*NOT* sendmail.cf) by
adding the line below to submit.mc and generating new submit.cf:
define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
Re: Unrecognized host name when sending mail via 'mailx'
"Andrzej Adam Filip" <anfi [at] priv.onet.pl> schrieb im Newsbeitrag
news:q37rc3-l75.ln1 [at] anfi.homeunix.net...
> Herbert Hackelsberger wrote:
> > [...]
>
> Yet another set of test commands:
> 0) recipient canonification with DNS tracking
> echo '3 h.s [at] gmx.at' | sendmail -Ac -bt -d8.20
Output is: (only root)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_res.options = 12c3, HasWildcardMX = 0
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify input: herbert . software [at] gmx . at
Canonify2 input: herbert . software < [at] gmx . at >
dns_getcanonname(gmx.at, trymx=1)
dns_getcanonname: trying gmx.at. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying gmx.at. (A)
YES
dns_getcanonname: gmx.at
Canonify2 returns: herbert . software < [at] gmx . at . >
canonify returns: herbert . software < [at] gmx . at . >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1) As above but with DNS tracking turned on
> (echo subject: test; echo)|/usr/sbin/sendmail -d8.20 -v h.s [at] gmx.at
Output (root) is:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_res.options = 12c3, HasWildcardMX = 0
dns_getcanonname(gmx.at, trymx=1)
dns_getcanonname: trying gmx.at. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying gmx.at. (A)
YES
dns_getcanonname: gmx.at
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
root... Connecting to local...
root... Sent
/var/log/mail.log displays:
~~~~~~~~~~~~~~~~~
Feb 21 12:19:59 ibmpcserver330 sendmail[3230]: k1LBJxHq003230:
herbert.software [at] gmx.at... Unrecognized host name gmx.at.
Feb 21 12:19:59 ibmpcserver330 sendmail[3230]: k1LBJxHq003230: from=root,
size=15, class=0, nrcpts=0,
msgid=<200602211119.k1LBJxHq003230 [at] ibmpcserver330.herbertsoftware.at>,
relay=root [at] localhost
Feb 21 12:19:59 ibmpcserver330 sendmail[3230]: k1LBJxHq003230:
k1LBJxHr003230: DSN: herbert.software [at] gmx.at... Unrecognized host name
gmx.at.
Feb 21 12:19:59 ibmpcserver330 sendmail[3230]: k1LBJxHr003230: to=root,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31039, dsn=2.0.0,
stat=Sent
>
> You can try removing DNS lookups from submit.cf (*NOT* sendmail.cf) by
> adding the line below to submit.mc and generating new submit.cf:
> define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
I added the line, generated new submit.cf restartet sendmail but the same
result:
X-Actual-Recipient: rfc822; "553 Unrecognized host name
"gmx.at. [at] ibmpcserver330.herbertsoftware.at
is still in the Mail Delivery failed msg.
Re: Unrecognized host name when sending mail via 'mailx'
"Herbert Hackelsberger" <dreck [at] blablablabladreckoida.org> writes:
> X-No-Archive
>
>
> Hi NG,
> My Name is Herbert Hackelsberger and I am from Austria.
>
> I have configured sendmail version 8.13.4
> ($Sendmail: debproto.mc,v 8.13.4 2005-06-03 16:49:22 cowboy Exp $)
>
> to accept and deliver messages to my personal domain 'herbertsoftware.at'
> Operating System: Debian 3.1-r1
>
> Sending mail works via
>
> telnet 62.99.185.67 25
> and via Outlook Express when using SMTP Server 62.99.185.67 (RELAY limited
> ot 62.99.185.66)
>
> But when I send an email with 'mailx -s "Test" herbert.software [at] gmx.at'
> I get the following error message in the console:
>
> herbert.software [at] gmx.at... Unrecognized host name gmx.at.
> Can't send mail: sendmail process failed with error code 68
proto.m4:
# deal with other remote names
ifdef(`_MAILER_smtp_',
`R$* < [at] $* > $* $#_SMTP_ $ [at] $2 $: $1 < [at] $2 > $3 user [at] host.domain',
`R$* < [at] $* > $* $#error $ [at] 5.1.2 $: "_CODE553 Unrecognized host name " $2')
If I read that correctly, "Unrecognized host name" exists only
on sendmail.cf/submit.cf if smtp mailer is not defined.
/ Kari Hurtta
Re: Unrecognized host name when sending mail via 'mailx'
<snip>
> proto.m4:
>
>
> # deal with other remote names
> ifdef(`_MAILER_smtp_',
> `R$* < [at] $* > $* $#_SMTP_ $ [at] $2 $: $1 < [at] $2 > $3
user [at] host.domain',
> `R$* < [at] $* > $* $#error $ [at] 5.1.2 $: "_CODE553 Unrecognized host
name " $2')
>
>
>
> If I read that correctly, "Unrecognized host name" exists only
> on sendmail.cf/submit.cf if smtp mailer is not defined.
>
>
> / Kari Hurtta
MANY THANKS!!
In sendmail.mc "MAILER(`smtp')dnl" was defined but not in submit.mc (I did
not know, that it has to be defined in both files...)
I added the following 3 lines:
FEATURE(`use_cw_file')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
MAILER(`smtp')dnl
The MAILER(`smtp')dnl option was needed to tell sendmail to deliver mails
with mailx and the PHP mail() feature anyway.
After I have set this option the error message "MX points back to
herbertsoftware.at" was shown in log file, when sending via mailx, so I
added
"FEATURE(`use_cw_file')dnl" which contains
localhost
ibmpcserver330.herbertsoftware.at
herbertsoftware.at
This problem was solved.
Now I saw, that delivering mails to any host except the hosts I am running
(herbertsoftware.at) does not work.
It turned out, that the virtusertable must be present too in submit.cf.
So this is why I added these 3 lines.
It works perfectly now. Many thanks to all helpers.
Best regards,
Herbert Hackelsberger
Re: Unrecognized host name when sending mail via 'mailx'
"Herbert Hackelsberger" <dreck [at] blablablabladreckoida.org> writes:
> <snip>
> > proto.m4:
> >
> >
> > # deal with other remote names
> > ifdef(`_MAILER_smtp_',
> > `R$* < [at] $* > $* $#_SMTP_ $ [at] $2 $: $1 < [at] $2 > $3
> user [at] host.domain',
> > `R$* < [at] $* > $* $#error $ [at] 5.1.2 $: "_CODE553 Unrecognized host
> name " $2')
> >
> >
> >
> > If I read that correctly, "Unrecognized host name" exists only
> > on sendmail.cf/submit.cf if smtp mailer is not defined.
> >
> >
> > / Kari Hurtta
>
>
> MANY THANKS!!
> In sendmail.mc "MAILER(`smtp')dnl" was defined but not in submit.mc (I did
> not know, that it has to be defined in both files...)
>
> I added the following 3 lines:
>
> FEATURE(`use_cw_file')dnl
> FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
> MAILER(`smtp')dnl
>
> The MAILER(`smtp')dnl option was needed to tell sendmail to deliver mails
> with mailx and the PHP mail() feature anyway.
> After I have set this option the error message "MX points back to
> herbertsoftware.at" was shown in log file, when sending via mailx, so I
> added
> "FEATURE(`use_cw_file')dnl" which contains
> localhost
> ibmpcserver330.herbertsoftware.at
> herbertsoftware.at
>
> This problem was solved.
> Now I saw, that delivering mails to any host except the hosts I am running
> (herbertsoftware.at) does not work.
> It turned out, that the virtusertable must be present too in submit.cf.
>
> So this is why I added these 3 lines.
> It works perfectly now. Many thanks to all helpers.
AFAIK according to sendmail.org recommendations submit.cf should be left
unchanged on (almost) all installations.
--
[pl2en Andrew] Andrzej Adam Filip : anfi [at] priv.onet.pl : anfi [at] xl.wp.pl
http://anfi.homeunix.net/
Re: Unrecognized host name when sending mail via 'mailx'
<snip>
> > This problem was solved.
> > Now I saw, that delivering mails to any host except the hosts I am
running
> > (herbertsoftware.at) does not work.
> > It turned out, that the virtusertable must be present too in submit.cf.
> >
> > So this is why I added these 3 lines.
> > It works perfectly now. Many thanks to all helpers.
>
> AFAIK according to sendmail.org recommendations submit.cf should be left
> unchanged on (almost) all installations.
In http://www.sendmail.org/faq/section3.html
I found the following text:
"8.12 uses a new paradigm: the binary is no longer setuid-root; to make this
work, there are now two queues, a "main" queue and a client-only queue. To
match these, there are two config files: one for the main queue
(sendmail.cf) and one for the client-only queue (submit.cf). There are also
two sendmail processes which need to run: a daemon and a client queue
runner. In the default configuration of sendmail, the client queue runner
must be able to submit mail to the daemon on the local SMTP port. If the
daemon is not listening on the SMTP port, the mail remains in the
client-only queue. If you don't want to accept mail from other machines, you
should add some or all of the following lines to your .mc file: .."
So I assume that submit.cf is needed for "mailx".
Please correct me if I am wrong.
Re: Unrecognized host name when sending mail via 'mailx'
"Herbert Hackelsberger" <dreck [at] blablablabladreckoida.org> writes:
> <snip>
> > > This problem was solved.
> > > Now I saw, that delivering mails to any host except the hosts I am
> running
> > > (herbertsoftware.at) does not work.
> > > It turned out, that the virtusertable must be present too in submit.cf.
> > >
> > > So this is why I added these 3 lines.
> > > It works perfectly now. Many thanks to all helpers.
> >
> > AFAIK according to sendmail.org recommendations submit.cf should be left
> > unchanged on (almost) all installations.
>
> In http://www.sendmail.org/faq/section3.html
> I found the following text:
>
> "8.12 uses a new paradigm: the binary is no longer setuid-root; to make this
> work, there are now two queues, a "main" queue and a client-only queue. To
> match these, there are two config files: one for the main queue
> (sendmail.cf) and one for the client-only queue (submit.cf). There are also
> two sendmail processes which need to run: a daemon and a client queue
> runner. In the default configuration of sendmail, the client queue runner
> must be able to submit mail to the daemon on the local SMTP port. If the
> daemon is not listening on the SMTP port, the mail remains in the
> client-only queue. If you don't want to accept mail from other machines, you
> should add some or all of the following lines to your .mc file: .."
>
> So I assume that submit.cf is needed for "mailx".
Right
[unless you *STUBORNLY* insist on installing sendmail-8.12+ as root suid]
> Please correct me if I am wrong.
submit.mc provided by sendmail.org has been designed to generate
submit.mc without *any* need for modifications on almost all
installations.
The only situation requiring (trivial) modification of submit.mc I know
is required on hosts with no permanent (or unreliable) internet
connection to turn off DNS lookups.
URL(s):
* http://www.sendmail.org/secure-install.html
sendmail configuration without set-user-ID root
* http://anfi.homeunix.net/sendmail/dialup10.html
define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl
--
[pl2en Andrew] Andrzej Adam Filip : anfi [at] priv.onet.pl : anfi [at] xl.wp.pl
http://anfi.homeunix.net/
Re: Unrecognized host name when sending mail via 'mailx'
In article <5dhd6s4kag.fsf [at] attruh.keh.iki.fi> Kari Hurtta
<hurtta [at] attruh.keh.iki.fi> writes:
>"Herbert Hackelsberger" <dreck [at] blablablabladreckoida.org> writes:
>
>> X-No-Archive
>>
>>
>> Hi NG,
>> My Name is Herbert Hackelsberger and I am from Austria.
>>
>> I have configured sendmail version 8.13.4
>> ($Sendmail: debproto.mc,v 8.13.4 2005-06-03 16:49:22 cowboy Exp $)
>>
>> to accept and deliver messages to my personal domain 'herbertsoftware.at'
>> Operating System: Debian 3.1-r1
>>
>> Sending mail works via
>>
>> telnet 62.99.185.67 25
>> and via Outlook Express when using SMTP Server 62.99.185.67 (RELAY limited
>> ot 62.99.185.66)
>>
>> But when I send an email with 'mailx -s "Test" herbert.software [at] gmx.at'
>> I get the following error message in the console:
>>
>> herbert.software [at] gmx.at... Unrecognized host name gmx.at.
>> Can't send mail: sendmail process failed with error code 68
>
>proto.m4:
>
>
># deal with other remote names
>ifdef(`_MAILER_smtp_',
>`R$* < [at] $* > $* $#_SMTP_ $ [at] $2 $: $1 < [at] $2 > $3
>user [at] host.domain',
>`R$* < [at] $* > $* $#error $ [at] 5.1.2 $: "_CODE553 Unrecognized host
>name " $2')
>
>
>
>If I read that correctly, "Unrecognized host name" exists only
>on sendmail.cf/submit.cf if smtp mailer is not defined.
Right - and since the problem is with 'mailx' only, his submit.cf is
broken. The standard submit.mc that is used to generate submit.cf
doesn't have much beyond
FEATURE(`msp', `[127.0.0.1]')dnl
which in turn pulls in the needed MAILER(`smtp') definition (i.e. it is
in cf/feature/msp.m4).
--Per Hedeland
per [at] hedeland.org
Re: Unrecognized host name when sending mail via 'mailx'
<snip>
> >If I read that correctly, "Unrecognized host name" exists only
> >on sendmail.cf/submit.cf if smtp mailer is not defined.
>
> Right - and since the problem is with 'mailx' only, his submit.cf is
> broken. The standard submit.mc that is used to generate submit.cf
> doesn't have much beyond
>
> FEATURE(`msp', `[127.0.0.1]')dnl
>
> which in turn pulls in the needed MAILER(`smtp') definition (i.e. it is
> in cf/feature/msp.m4).
>
I have checked again the submit.mc file.
I have added the following version history to my submit.mc file:
# Last changes:: Herbert on 21.02.2006 at 21:25
# Version 1.2
# version changes:
# 1.0 - initial version
# 1.1 - FEATURE(`msp', `[127.0.0.1]', `MSA')dnl disabled
# 1.2 - FEATURE(`use_cw_file')dnl added
# FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
added
# MAILER(`smtp')dnl added
Why I have disabled the FEATURE(`msp'... line I don't know...
I think when I activate again this setting I can disable the changes from
version 1.2. I will try it tomorrow and let you know the results.
Best regards,
Herbert Hackelsberger
Re: Unrecognized host name when sending mail via 'mailx'
<snip>
> # Last changes:: Herbert on 21.02.2006 at 21:25
> # Version 1.2
> # version changes:
> # 1.0 - initial version
> # 1.1 - FEATURE(`msp', `[127.0.0.1]', `MSA')dnl disabled
> # 1.2 - FEATURE(`use_cw_file')dnl added
> # FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
> added
> # MAILER(`smtp')dnl added
>
> Why I have disabled the FEATURE(`msp'... line I don't know...
> I think when I activate again this setting I can disable the changes from
> version 1.2. I will try it tomorrow and let you know the results.
>
> Best regards,
> Herbert Hackelsberger
>
I have enabled again FEATURE(`msp', `[127.0.0.1]', `MSA') and disabled the
other changes.
If I try to use mailx now the mail.log tells me:
Mar 5 13:16:47 ibmpcserver330 sendmail[23403]: k25CGlHd023403:
to=herbert.software [at] gmx.at, ctladdr=herbert (1000/1001), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30048, relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
No error message in console is shown.
Ok it doesn't matter at all, my workaround does work without further
problems, so I enabled Version 1.2 of the file again.
Es everything does work now I think we can close this thread.
Many thanks to all helpers!
Best regards,
Herbert Hackelsberger