1756751 Members
3186 Online
108852 Solutions
New Discussion юеВ

Sendmail issue

 
SOLVED
Go to solution
Mridul Dutta
Advisor

Sendmail issue

Hi All,

Are you able to tell me how it is possible that is able to send mail to "mridul@in.ibm.com" via mailx command
even though /etc/mail/sendmail.cf specifies a blank "DS" value?

Regards

Mridul
5 REPLIES 5
Anshumali
Esteemed Contributor
Solution

Re: Sendmail issue

1. DNS integration
2. Host file.
do a
sendmail -v -d9.99 -d38.99 mridul@in.ibm.com < /dev/null

and see how it is sending the mail. this will give you a debug output for this email and how it is resolving the names and aliases.

Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Mridul Dutta
Advisor

Re: Sendmail issue

Hi Anshu,


My host name is : codrp01

domain : westpac.com.au

See the result .
/usr/sbin/sendmail -v -d9.99 -d38.99 kwun@westpac.com.auseq_map_parse(aliases.files, )
getauthinfo: root@localhost
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(host:resolve, NULL, 0)
host:resolve NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(host:resolve, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
host_map_lookup(westpac.com.au) => getcanonname(westpac.com.au), trying files
text_getcanonname(westpac.com.au)
getcanonname(westpac.com.au), trying dns
getcanonname(westpac.com.au), found
westpac.com.au
kwun@westpac.com.au... Connecting to smtphubs.intranet.westpac.com.au. via esmtp...
220 "ESMTP Server at Mon, 5 Nov 2007 16:01:44 +1100"
>>> EHLO codrp01.eccc.nsw.westpac.com.au
250-prcchb01.intranet.westpac.com.au Hello codrp01.eccc.nsw.westpac.com.au ([10.4.13.218]), pleased to meet you
250-HELP
250-SIZE
250 PIPELINING
>>> MAIL From:
250 t004535@codrp01.eccc.nsw.westpac.com.au... Sender OK
>>> RCPT To:
250 kwun@westpac.com.au... Recipient OK
>>> DATA
354 Enter message, end with "." on a line by itself
>>> .
250 Message accepted for delivery
kwun@westpac.com.au... Sent (Message accepted for delivery)
Closing connection to smtphubs.intranet.westpac.com.au.
>>> QUIT
221 prcchb01.intranet.westpac.com.au SMTP Service closing transmission channel
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
closemaps: closing resolve (NULL)


whiteknight
Honored Contributor

Re: Sendmail issue

Mridul,

yes it is possible to perform sendmail in a blank "DS" value, because your organization has configured DNS, so it will identify the root name server

WK
Problem never ends, you must know how to fix it
Mridul Dutta
Advisor

Re: Sendmail issue

Thats true ...


i m giving one example to understand better ..
i m getting mails from "abc01"

Hostname from where i m getting mail "abc01" and there is no entry for rely sever in sendmail.cf.


Now i wants to find out how i m getting mails from "abc01" without rely server.

For this where i need to check all details.

Anshumali
Esteemed Contributor

Re: Sendmail issue

Not sure what your exact query is:
but if you have DNS integrated, it can very well give you the MX records. Relay can be configured at the Exchange server level and blocked as well.
See below:
westpac.com.au MX resolved by DNS to smtphubs.intranet.westpac.com.au
If you do a
nslookup
set type=mx
westpac.com.au

you will see the MX records.

Thanks,
Anshu

Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!