1836465 Members
2456 Online
110101 Solutions
New Discussion

sendmail Relay

 
Ahmad Munawwar
Frequent Advisor

sendmail Relay

Hi,

I'm confusing about the sendmail relay. I intended to send mail (as root) to my local user in the same machine but it goes to other workstation. Could I reconfigure for:-

1. The workstation when received mail then deliver back mail to user in my machine.

br,
Munawwar

Here is the result that I got:-

sdp2:root> sendmail -v -d8.99 -d38.99 snapadm@sdp2.foo.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)
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, 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
getcanonname(sdp2.foo.com), trying files
text_getcanonname(sdp2.foo.com)
getcanonname(sdp2.foo.com), found
seq_map_lookup(aliases, snapadm)
seq_map_lookup(aliases.files, snapadm)
impl_map_lookup(Alias0, snapadm)
db_map_lookup(Alias0, snapadm)
snapadm@sdp2.foo.com... aliased to root@sdp_ws1
getcanonname(sdp_ws1), trying files
text_getcanonname(sdp_ws1)
getcanonname(sdp_ws1.foo.com), found
seq_map_lookup(aliases, owner-snapadm)
seq_map_lookup(aliases.files, owner-snapadm)
impl_map_lookup(Alias0, owner-snapadm)
db_map_lookup(Alias0, owner-snapadm)
MUNAWWAR HERE
.
getmxrr(sdp_ws1.foo.com., droplocalhost=1)
root@sdp_ws1... Connecting to sdp_ws1.foo.com. via esmtp...
220 sdp_ws1.foo.com ESMTP Sendmail 8.9.3 (PHNE_18546)/8.8.6; Wed, 3 Nov 2004 11:21:25 -0700 (MST)
>>> EHLO sdp2.foo.com
250-sdp_ws1.foo.com Hello sdp2x [190.254.132.112], pleased to meet you
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From: SIZE=14
250 ... Sender ok
>>> RCPT To:
250 ... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 LAA09661 Message accepted for delivery
root@sdp_ws1... Sent (LAA09661 Message accepted for delivery)
Closing connection to sdp_ws1.foo.com.
>>> QUIT
221 sdp_ws1.foo.com closing connection
2 REPLIES 2
Todd Whitcher
Esteemed Contributor

Re: sendmail Relay

Ahmad,

Check your /etc/mail/sendmail.cw and make sure all the names your system might be known as are listed.

The /etc/mail/sendmail.cw file should contain an entry for all the possible names by which this system might be known. This will allow sendmail to determine whether or not local mail should be accepted by this system. The file should contain one line each for the FQDN, the hostname alone, and 'localhost.' The hostname entries should match exactly the hostname in /etc/hosts
D Anderton
Advisor

Re: sendmail Relay

Looks like you may have sendmail aliases setup :-

snapadm@sdp2.foo.com... aliased to root@sdp_ws1

Edit /etc/mail/aliases and remove the entry for snapadm@sdp2.foo.com

Stop and start sendmail