Sendmail, I think this is easy, but can someone help?
Hi all,
I was hacked a few weeks ago and my sendmail server was switched to open relay. I fixed it, but in that time, I got "blacklisted"! ARGH!! The final list I need to get off of is trying to send me a removal confirmation e-mail to my "postmaster" address. My domain is "bubba.net". The problem is that they CANNOT send this e-mail to postmaster@bubba.net. They can only send it to postmaster@[1.1.1.1] (where 1.1.1.1 is my IP address). How can I setup sendmail to accept mail bound for "whatever"@1.1.1.1? Does anyonw know how to do this? Please help!! Thanks!! Chris |
It could be that bubba.net does not resolve to your ip address, this would be a DNS problem, maybe you need to update the domain name if your ip address changed.
I am able to connect to bubba.net and send mail to postmaster, it says message queued check /etc/mail/aliases for an entry like this ... postmaster: root that's the default entry you may want to add an entry like this to get root's mail, user being your user name root: user run this to update the aliases sendmail -bi I was also able to send to postmaster@mail.bubba.net which is your MX record for bubba.net I also sent one to your ip address Did you get the messages I sent check the contents of /var/log/maillog |
Oh jeez,
I'm very sorry David! bubba.net is not ACTUALLY my domain. I was using that as an example and forgot to mention it! Oooops... My REAL domain is bartlett-family.net!!! Sorry!!! Please try again and let me know what you get, because when I try to e-mail postmaster@[my_ip_address], I get an error message saying relaying denied. Chris PS. I know you can just do a "whois" to get my IP address, but I didn't want to type it. It's 24.61.77.188. All I need is for an e-mail to: postmaster@[24.61.77.188] to go through ok, and to be redirected automatically to the user "chris". |
this is what I get
telnet mail.bartlett-family.net 25 Trying 24.61.77.188... Connected to mail.bartlett-family.net. Escape character is '^]'. 220 goliath.home.bartlett-family.net ESMTP Sendmail 8.12.9/8.12.5; Wed, 28 May 2003 23:28:36 -0400 ehlo dcphillips.net 250-goliath.home.bartlett-family.net Hello [65.90.149.154], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP mail from: david@dcphillips.net 250 2.1.0 david@dcphillips.net... Sender ok rcpt to: postmaster@bartlett-family.net 250 2.1.5 postmaster@bartlett-family.net... Recipient ok data 354 Enter mail, end with "." on a line by itself test email to postmaster@bartlett-family.net via telnet mail.bartlett-family.net 25 . 250 2.0.0 h4T3SakG007467 Message accepted for delivery quit 221 2.0.0 goliath.home.bartlett-family.net closing connection Connection closed by foreign host. I will try an email client |
here is what I get in my log file when I send through my mail server
May 28 22:59:01 www postfix/smtp[29748]: EE82B13C8D: to=<postmaster@bartlett-family.net>, relay=smtp.comcast.net[24.153.64.2], delay=1, status=sent (250 2.5.0 O k.) which is relaying through my isp just to please AOL's stupid non-complient mail servers looks ok |
The only problem I can see is the servers name is not valid in terms of DNS
you should change it to mail.bartlett-family.net or some other valid address just to satisfy the picky if for no other reason |
David,
I got the e-mails you sent to postmaster@bartlett-family.net, but that's not the problem. I need to be able to get e-mail at this address: postmaster@[24.61.77.188] my db file in /var/named says: MX 50 mail.bartlett-family.net. Does that help? Lemme know what you think! Chris |
Open /etc/mail/sendmail.cf for edit
Search "Dj" u will see your domain , change it and save |
Nah, that wasn't the problem. I wasn't using cw_file. I added that in sendmail.mc, remade the configuration file, restarted sendmail, and hoowaa! All set. Thanks for all your help, guys!
Chris |
All times are GMT -5. The time now is 06:25 PM. |