Operating System - HP-UX
1753923 Members
7954 Online
108810 Solutions
New Discussion юеВ

Re: sendmail not working (used to work...)

 
Anshumali
Esteemed Contributor

Re: sendmail not working (used to work...)

To see whether its appending the DNS name in RCPT TO, you can use:
sendmail -v -d7.99 -d38.9 user_name@domain.com
It should be visible there in my opinion. From here, you can get the clue to fix it.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
tom_2010
Occasional Advisor

Re: sendmail not working (used to work...)

Anshumali,

Thank you very much for the script.
Though I run the given script, I'm not clear if sendmail appends domain name etc.

Below is a part of sendmail log.
--------------------------------------
>>> EHLO myserver.com
250-mailserver.com Hello [xx.xxx.xx.xx]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From:
250 2.1.0 wwwww@myserver.com....Sender OK
>>> RCPT To:
250 2.1.5 aaaaa@bbbbb.com.xxxxx.zzzzz.com
>>> DATA
------------------------------------------

I just want sendmail not to put xxxxx.zzzzz.com after aaaaa@bbbbb.com in RCPT To field. Everything looks OK except RCPT To field.

Would you pls give me a clue to make this work?



Anshumali
Esteemed Contributor

Re: sendmail not working (used to work...)

whats coming above ">>> EHLO myserver.com"
May be there is a clue how its appending. Would you be able to paste that, espcially where its resolving the names and domains....
Is there anything other layer, like spam filters etc....
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
tom_2010
Occasional Advisor

Re: sendmail not working (used to work...)

Anshumali,

Thanks for advice.
Here is what i get.

-------------------------------------------
sendmail -v -d7.99 -d38.9 user_name@domain.com
seq_map_parse(aliases.files, )
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)
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote 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)
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)
queuename: trying "qfNAA25807"
queuename: assigned id NAA25807, env=40019f38
lockfd= 4: fl=0x1, mode=100600: size=0
queuename: xfNAA25807
queuename: dfNAA25807
queuename: tfNAA25807
user_name@domain.com... Connecting to [xx.xxx.xxx.x] via relay...
-------------------------------------------

It looks like sendmail is looking at aliases file in /etc/mail. I dont think aliases file relates to this issue but let me paste contents of aliases file just for info.

--------------------------------------
# Alias for mailer daemon
MAILER-DAEMON : root

# RFC 822 requires that every host have a mail address "postmaster"
postmaster : root

# Aliases to handle mail to msgs and news
nobody : /dev/null

# System Admistration aliases
operator : root
uucp : root
daemon : root

# Ftp maintainer.
ftp-bugs : root

# Local aliases
--------------------------------------

Hope you can find something from the above.
Let me know if more details are required.

BTW, when i directly telnet to mail server and sends e-mail thru SMTP conversation, it works fine and RCPT TO address does not have duplicated host name. Is it because i directly input recipient address?
tom_2010
Occasional Advisor

Re: sendmail not working (used to work...)

Hi all.

Problem seems to be (temporalily) fixed by adding # to
R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4 in sendmail.cf's ruleset 96.

I know this is just a workaround and still need to work on this issue, but now sendmail functions started to work properly.

I really appreciate everyone's replies.
tom_2010
Occasional Advisor

Re: sendmail not working (used to work...)

Found workaround so this thread is closed.