LinuxQuestions.org
Review your favorite Linux distribution.
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 03-10-2004, 09:54 AM   #1
nabil_boussetta
Member
 
Registered: Oct 2003
Posts: 45

Rep: Reputation: 15
smtp listener (sendmail)


i'm running sendmail on redhat AS2.1
i know that an smtp listener should listen on port 25
when executing : "netstat -a|grep smtp" i found nothing
when i send mail from another host; the mail could not be sent

any help is appreciated
 
Old 03-13-2004, 06:58 PM   #2
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
I am having the same problem. When trying to send email from other host, but to an email address of the same domain, it works. For example:

The host is host1.domain1.com
When sending to user1@host1.domain1.com , it works. But if i try emailing to titan@hotmail.com , I got this error from outlook express:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'titan@hotmail.com'. Subject 'test', Account: 'host1.domain1.com', Server: 'host1.domain1.com', Protocol: SMTP, Server Response: '550 5.7.1 <titan@hotmail.com>... Relaying denied. IP name possibly forged [134.7.235.145]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79


However, if I log in to host1.domain1.com using shell, sending email to titan@hotmail.com works fine, and delivered. Anyone know what the problem is?

And how do I make it so the address can be user1@domain1.com , instead of user1@host1.domain1.com ?

THanks.


Using Slackware 9.1, and sendmail 8.12.11
 
Old 03-13-2004, 09:00 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
nabil_boussetta,
Try
$ ps -ef | grep -i sendmail
what do you get?

bulzbb,
I would highly recommend replacing Sendmail with either Postfix or Qmail. Sendmail has had a terrible history of security flaws, and it's extremely confusing to configure. In most cases, the Postfix binaries can mimic Sendmail and use the same command line options, so any scripts setup to use Sendmail should work fine with Postfix.

The actual problem you're having is due to Sendmail (finally, after decades!) not being an open relay by default. You need to add your IP to the access DB and recompile it (if you really want to continue using Sendmail, that is). On Postfix it's much easier, you just edit the relay host settings in the main.cf file and restart the daemon.
 
Old 03-13-2004, 09:50 PM   #4
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
Hi,

I have tried installing postfix, but I faced with so many errors. I used Slackware 9.1 , and did not include sendmail when doing the installation. Then I downloaded postfix, and have problems with db.h . So I installed Berkeley DB (But I want to use MySQL, do I actually need to install Berkeley DB?). THen after this I can do 'make' successfully. But then, when I go to the next step, there is another error. So I decided to stick with sendmail, which already included in the package.

Anyway...

$ ps -ef | grep -i sendmail
root 120 1 0 12:22 ? 00:00:00 sendmail: accepting connections
smmsp 123 1 0 12:22 ? 00:00:00 sendmail: Queue runner@00:25:00 for /var/spool/clientmqueue

That's what I get. And this is what is in my access file:

# /usr/sbin/makemap hash /etc/mail/access.db < /etc/mail/access
#
localhost RELAY
#
domain1.com RELAY
host1.domain1.com RELAY

I added host1.domain1.com in there, then I recompiled by typing:

# makemap hash /etc/mail/access.db < /etc/mail/access

Then I restarted sendmail (and I even started the computer). Still no luck.. Any other idea why doesnt it work?
 
Old 03-13-2004, 10:45 PM   #5
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
Sorry, I misunderstood the concept for a while. Now, I have added this in the access file:

com
com.au
net
net.au

Now it works. I have another question though, what do I need to do, so that a user in my domain can send email to anywhere? say if someone email address is abc@domain.co.uk . Does this mean I have to add co.uk (and all others) to access file and recompile it?

And if I relay it to everywhere, does this mean my server can be used by spammer to spam others (if they don't have an access/account)?

One more thing, when I send an email, others see the address as user1@host1.domain1.com . Is it possible so that they see user1@domain1.com ? I'm still reading some documentations, but if you do know (or know where I can find the documents), it would be great!

THanks.
 
  


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
SMTP Authentication ( Sendmail ) Devyn Linux - Software 0 02-17-2005 07:42 PM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM
SMTP by SendMail thomas_hk03 Linux - Software 5 08-06-2003 10:53 PM
pop before smtp with sendmail markus1982 Linux - Networking 0 08-31-2002 04:40 AM

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

All times are GMT -5. The time now is 02:35 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