LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 12:43 AM   #1
ka_alucard
LQ Newbie
 
Registered: May 2003
Distribution: Slackware 8.1
Posts: 8

Rep: Reputation: 0
Question qmail smtp relay problem


Hi there, I'm a qmail newbie switching from being a sendmail administrator for 4 years, and something is concerning me, and it's the smtp security. In the logs in /var/log/qmail/current I see that there are some connections from weird servers that the server allows to send mail to other hosts that are not in my rcpthosts file after they retry several times. When I telnet to it thru port 25 and try to send mail to other hosts rather than the ones that I have in my server, it sends me the denial message (as is suppoused to do with everybody) but, then how come some other people is allowed to send mail thru my mail server even if the receiver isn't in the rcpthosts file?

Take a look at this:

1) the spammer gets into the server

-------------------
@400000003ed438a30a3238cc info msg 187843: bytes 3475 from <homeloan8894rmov@aol.com> qp 16744 uid 1018
-------------------

2) the server sends the first message of denial

-------------------
@400000003ed408bf25c257fc delivery 123: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
@400000003ed408bf25c2967c status: local 0/10 remote 0/20
-------------------

3) after retrying lots of times, somehow the server allows the message to be send and of course that argentina.com isn't in my rcpthosts file

-------------------
@400000003ed41381256c585c starting delivery 124: msg 187843 to remote s4y@argentina.com
@400000003ed41381256c9ac4 status: local 0/10 remote 1/20
@400000003ed4154710ad95ac delivery 124: success: 200.68.207.253_accepted_message./Remote_host_said:_250_Ok:_queued_as_6B221689
C0/
-------------------

How do I tell qmail to only allow smtp (send mail) connections in my network? for example, just the people using 192.168.0.* and refuse everybody else? I have read the Life with qmail and many other documentation books but, all they talk is this rcpthosts file, nothing else...

Thanx for the help

Juan Hernandez
 
Old 05-28-2003, 01:06 AM   #2
ka_alucard
LQ Newbie
 
Registered: May 2003
Distribution: Slackware 8.1
Posts: 8

Original Poster
Rep: Reputation: 0
and where do I take care of the mails that are send back to the user when a mailbox quota is full??
 
Old 05-28-2003, 03:34 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe this is what you're looking for.

//moderator note: moved to /networking as it's more appropriate there (not a security issue).
 
  


Reply



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 "open relay" and SMTP AUTH aikempshall Linux - Security 3 10-11-2006 08:19 AM
Qmail + Mailserver + relay problem.... plazaoid Linux - Networking 2 01-06-2005 09:44 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
SMTP relay problem chuck77 Linux - General 0 06-30-2003 02:09 AM
Qmail SMTP problem deepak_v Linux - Networking 1 04-07-2003 08:21 AM

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

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