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 07-27-2004, 05:27 AM   #1
ivanhq
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Qmail-scanner scanning outgoing traffic


Does anyone know how to set up Q-S not to scan outgoing messages?
I want it to scan only incoming ones.
My qmail works with mysql and pop-before-smtp.

Thank you!

Ivan
 
Old 07-27-2004, 07:12 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Welcome to LQ! You can change it by editing your /etc/tcp.smtp file. In there, you will probably see lines with "qmail-scanner-queue.pl"... change those to say "qmail-queue" instead. Don't include the pl at the end... it's not a perl script... it's a C program.
 
Old 07-27-2004, 08:20 AM   #3
ivanhq
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Yes but...

Yes, but if i change that, then Q-S won't scan any messages, either incoming or outgoing. Isn't it?
I mean... i don't understand it... i'd like you to explaint it a little if you don't mind :-)
 
Old 07-27-2004, 12:27 PM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Well, it depends on what you have in your tcp.smtp file. Can you post that for me to see? For example... if you have the following in your file....

Quote:
192.168.1.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
127.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
The first line is accepting mail from your local IP address (on your network) and the the 127 line is accepting mail from your localhost (the machine qmail is running on). These should not be passed through qmail-scanner because you don't want to perform mail scanning for the outside world. You probably trust your users not to be sending viruses to other people or sending out spam, but even if they did, I personally wouldn't want to perform mail scanning for other people's emails because this is like performing a free service to the world.

The third line is for "everything else" and that includes incoming mail to your users. This is where you want qmail-scanner to do its job because you want mail scanned that is incoming for your users.

Hope that helps.
 
Old 07-27-2004, 12:51 PM   #5
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Also... once you have made changes to that file, you need to rebuild the file. If you have a decent start script, you may be able to run "qmailctl cdb" or you can just run these commands...

/usr/local/bin/tcprules /home/vpopmail/etc/tcp.smtp.cdb /home/vpopmail/etc/tcp.smtp.tmp < /home/vpopmail/etc/tcp.smtp

chmod 644 /home/vpopmail/etc/tcp.smtp.cdb

Course these assume you're doing this with vpopmail... if you're not, just change the paths accordingly to strip off the /home/vpopmail part.

Also "qmail-queue" is just the regular queueing mechanism that comes with qmail. So by using this, you are injecting messages directly into the queue.
 
  


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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Iptables - Redirecting Outgoing Traffic Frankablu Linux - Networking 1 06-12-2005 01:18 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Clamav scanning outgoing, but not incoming mail chaan Linux - Software 0 04-09-2004 01:03 PM
How to use QoS to throttle outgoing traffic? Electrode Linux - Networking 3 06-13-2003 07:46 AM

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

All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration