Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between smtp.rules, tcp.smtp, pop-3.rules, etc.

Status
Not open for further replies.

packdragon

IS-IT--Management
Jan 21, 2003
459
US
I come from a Microsoft house... everything we do is Microsoft, so why we have a single Linux box ("Bash" version) running Qmail is beyond me. But apparently one of our mail servers is allowing relays, so I need to track down which. I've read that Qmail has relaying disabled by default, so I've been looking into the rules. What I'm confused by is that I see stmp.rules, pop-3.rules, qmtp.rules, smtp.cdb, etc. I've read many references to a file called tcp.smtp, but I don't see that anywhere. I'm looking in the "tcpcontrol" directory.

I'm getting an understanding of how the rules work, but I'm confused by all these rules files. Can someone please summarize for me what these mean? And how does one test for relaying? I read everywhere that you test by sending mail directly to your mail server from a different IP, destined for an outside IP, effectively using it has a relay. But how do you do that? And how do I mask my IP with a different IP so I can test from inside the office (I've heard that spammers can do this)?

Any and all input is much appreciated for this Linux newbie!
 
tcp.smtp is an arbitrary name, you can call it anything pretty much. If it is named foo.smtp, it will have a corresponding foo.smtp.cdb after the file is "initialized." qmail doesn't read the tcp.smtp directly, it reads from the database file that is generated from that file, cdb.

One of the lines in the /var/qmail/run file will tell you what it's using. The line in mine is:

Code:
    -x /var/qmail/control/tcp.smtp.cdb -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \

You'll also want to look at the rcpthosts, this is a list of domains that are allowed to send mail through the server.

--
Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top