View Full Version : sendmail common problem


rinux
elslam 3alikom,

sendmail is sending mails but the mails is not received(i send to my self and i can see mails in the sent folder and in message qeue but i can't find it in inbox

i have heared this is a common problem that needs a trick to be solved i tried but ..........can anyone here help?

i am using redhat7.2
thanks

sattia
Actually ur post is vague to me.
Please explain more what acually u did? whats ur setup? and how did u verify that it didnt work?

rinux
elslam 3alikom,
first i am using (redhat7.2-sendmail), actually my problem is i don't receive mail
if i send mail to user1@mydomain.com i can see it in the sent messages but i can't see it in inbox (not received ye3ny)
but if i send to user1@localhost i do find it at inbox
it is a common problem in redhat with sendmail it is reported in sendmail official site
http://www.sendmail.org/faq/section5.html#5.3.1.3
i did configure (senmail.cf, my dns files, mailertables,..) but still i can't solve it, please if anyone did experience this problem before HELP! :)
thanks

rinux
elslam 3alikom,
my detailed steps to configure the

server

1./var/named/named.dom1.ibm.com
$TTL 86400
@ IN SOA sys1.dom1.ibm.com. root.sys1.dom1.ibm.com. (
2002060702 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400) ; minimum TTL
9999999 IN NS sys1.dom1.ibm.com.
9999999 IN MX 10 sys1.dom1.ibm.com.
sys1 9999999 IN A 10.1.1.1
sys2 9999999 IN A 10.1.1.2

2.service named restart

3./etc/sendmail.cf
Cwlocalhost sys1.dom1.ibm.com dom1.ibm.com
Comment out the DaemonPortOptions line.

4./etc/mail/access
dom1.ibm.com RELAY

5.make

6.service sendmail restart

7./etc/xinetd.d/ipop3
"disable" set to no.

8.service xinetd restart


client

netscape
1. Edit; Preferences ---> Mail & Newsgroups
At the Identity submenu, user1 as my name and
user1@dom1.ibm.com as Email address

2.At the Mail Servers submenu, ----> Incoming Mail Server selected pop and deleted it. Add and enter sys1.dom1.ibm.com as Server Name
and user1 as User Name. Also, selected Remember password.
Then, enter sys1.dom1.ibm.com as Outgoing mail (SMTP) server and
enter user1 as Outgoing mail server user name.

3. Communicator; Messenger
to send and receive New Msg.--------- Get Msg.

rinux
haeeeeeeeee i have a problem here !! are u telling me no one did configure sendmail before !! try to help please if u can
thanks

OneOfOne
no idea about sendmail, if you want there's a good postfix howto @ http://forums.gentoo.org/viewtopic.php?t=56633&highlight=postfix
i also might be able to help with postfix since i been running it on my home computer as a backup if my host's smtp server goes down.

peace

rinux
waaaaaaaaaaaaaaaw
at last it worked it was a problem in dns in /var/named/named.ip
thanks ALLAH

sattia
1 - What about ur virtusertable file? did u map the users of ur domain to their equivalent local users???
post ur virtusertable

2 - Also it is better to include ur lcoal domains in /etc/mail/local-host-names and leave sendmail.cf with its spaggetti as it is

3 - Make sure that u resolve from the same DNS where u put ur domain

4 - Post ur /var/log/mail

5 - Check ur q; I guess that ur messages get stuck in the q

6 - What u said is not related to RHL plus that the site u sent is talking about something else which is not ur case either

7 - You r here cuz u ve a problem so u ve to be more patient and explain ur problem in detail and stop saying 'hey Ive a problem .. ' cuz simply we all ve jobs and we can say 'hey go and fix ur problem or RTF(riendly)M'

8 - When posting configurations enclose them between CODE and /CODE tags not /QUOTE and /QUOTE

rinux
thanks for your reply
it is now all ok but i would like to know more about virtusertable file how do i exactly write it ? i didn't think about it as i am trying dns and mail on a single pc ...

sattia
a sample of a virtusertable entries:

user1@dom1.ibm.com user1
userX@dom1.ibm.com userY (yes userY not userX cuz u can map any email to anything else even if it is external)
.
.
.

if always u ve the username@dom1.ibm.com is mapped to username then u can do this in a simpler way by
%1@dom1.ibm.com %1

in either case u ve to handle nonexisting emails. Say u ve x@dom1.ibm.com only and someone sent an email to y@dom1.ibm.com; the following happens:
1 - sendmail looks for y@dom1.ibm.com and sends it to the mapped user
2 - if it cant find any then it tries to deliver this to y@<defaulthost>
3 - if it cant find then it returns an error to the sender

so to avoid 2 cuz it may send the emails to the unintended ppl u ve to setup something like a trap or a catchall technique

@dom1.ibm.com <certain user>
or
@dom1.ibm.com :error no such user