LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2003, 09:00 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
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

Last edited by WorldBuilder; 05-28-2003 at 09:08 PM.
 
Old 05-28-2003, 09:51 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 05-28-2003, 10:09 PM   #3
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
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".
 
Old 05-28-2003, 10:34 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 05-28-2003, 10:41 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 05-28-2003, 10:45 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 05-29-2003, 11:10 AM   #7
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
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
 
Old 05-29-2003, 12:54 PM   #8
Electboy
Member
 
Registered: May 2003
Location: VietNam
Distribution: RedHat 9.0
Posts: 79

Rep: Reputation: 15
Open /etc/mail/sendmail.cf for edit
Search "Dj" u will see your domain , change it and save
 
Old 05-29-2003, 01:28 PM   #9
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux4RegularGuys - EASY FTP setup using vsftpd - READ THIS FOR EASY HELP DropHit Linux - Networking 4 11-25-2004 02:44 PM
easy sendmail question paperdiesel Linux - Networking 2 10-31-2003 08:30 AM
Easy Question about sendmail for GURUS cartfanatic39 Linux - Networking 3 09-18-2003 07:05 AM
easy sendmail question j-ray Linux - Networking 7 05-18-2002 01:08 AM
sendmail installation...not easy haploxi Linux - Software 0 01-28-2002 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration