Discussion:
--SPAM-- Qmail Attachment
Ravi bhargav
2011-03-23 14:42:56 UTC
Permalink
Hi,

I have a Qmail server running in a corprate enviroment since 3 years. I
have 3 queries.. Somebody please suggest me if these can be solved :-)

1. I have set the attachment size in in /var/*qmail*/control/databytes.
Now the size what I have specified in the databytes applies to all the
users. Is there a way I can specify different attachment size for different
catagory of users, say for developers is 4M, executives, is 8M, and
something which is how possible on MS exchange?

2. Marking on the above point, since we have attachment size set globally to
all the mailboxes, there are situations when there is possibility of choking
our internet bandwidth when every body are sending mails with attachments.
This is effecting our business mails to reach the recipients on time as it
is a first come first out. Is there a way I can defer all the mails other
than the business mails which are in the queue? LIke ex. If in queue I see
so many mails to Yahoo, hotmail & the client domains too & I just need to
defer the mails going to yahoo,hotmail and allow for client domains only.
Since there was a internet bandwidth choke, I had to delete all the emails
in queue and we lost all business related mails along with the personal
mails.

3. I am using qmHandle to see all the emails in queue. Is there a better
tool which helps in the queue management and queue monitoring?

Thanks,

Ravi Bhargav
Torsten Kersandt
2011-03-23 15:32:04 UTC
Permalink
Hi Ravi



To point 1

A almost easy way to deal with databytes per user is to use the
/etc/tcp.smtp file but this requires all PC's in the network to have fixed
IP's



You can set the DATABYTES variable from tcpserver, just like RELAYCLIENT.

1.1.1.1.:allow,DATABYTES="500000"

1.1.1.2.:allow,DATABYTES="5000000"



A second, more dynamic possibility would be to use the auth.cdb method as in

http://qmail.jms1.net/scripts/mkauth.shtml



Both would simply overwrite the databytes set in the config



Point 2

You could have just done a "svc -d /service/qmail-send" to stop the outgoing
messages and given you more time to deal with individual messages.

In addition, user education is a good start but after years and years of
that I still have people sending 75 MB emails to gmail and sorts.



Or you can create a smtproutes file entry for those domains and route the
emails to a BW limited server.

You can install a second qmail on the server and bind this qmail-send to a
specific IP address (qmail-1.03-bind-interface.patch).

I use this to queue outgoing per service/domain on single machines because
of spf and sorts.

After that it is up to your firewall skills to throttle any from IP2 =>
destination:25



3.

Search for qmail-cleaner on the net, it's a python script in combination
with qmhandle
Other than that you can use the Webmin module for qmail, quiet nicely
actually

Regards
torsten







From: Ravi bhargav [mailto:ravibhargav76-***@public.gmane.org]
Sent: 23 March 2011 14:43
To: qmr-iGp6mRlwfsr/sFSC9fAAV0B+***@public.gmane.org
Subject: [qmr] --SPAM-- Qmail Attachment



Hi,



I have a Qmail server running in a corprate enviroment since 3 years. I
have 3 queries.. Somebody please suggest me if these can be solved :-)



1. I have set the attachment size in in /var/qmail/control/databytes. Now
the size what I have specified in the databytes applies to all the users. Is
there a way I can specify different attachment size for different catagory
of users, say for developers is 4M, executives, is 8M, and something which
is how possible on MS exchange?



2. Marking on the above point, since we have attachment size set globally to
all the mailboxes, there are situations when there is possibility of choking
our internet bandwidth when every body are sending mails with attachments.
This is effecting our business mails to reach the recipients on time as it
is a first come first out. Is there a way I can defer all the mails other
than the business mails which are in the queue? LIke ex. If in queue I see
so many mails to Yahoo, hotmail & the client domains too & I just need to
defer the mails going to yahoo,hotmail and allow for client domains only.

Since there was a internet bandwidth choke, I had to delete all the emails
in queue and we lost all business related mails along with the personal
mails.



3. I am using qmHandle to see all the emails in queue. Is there a better
tool which helps in the queue management and queue monitoring?



Thanks,



Ravi Bhargav
Ravi bhargav
2011-03-25 06:03:10 UTC
Permalink
Thanks Torsten.
I could get all of them going good :-) That was a great help!

Thanks,
Ravi Bhargav
Post by Torsten Kersandt
Hi Ravi
To point 1
A almost easy way to deal with databytes per user is to use the
/etc/tcp.smtp file but this requires all PC’s in the network to have fixed
IP’s
You can set the DATABYTES variable from tcpserver, just like RELAYCLIENT.
1.1.1.1.:allow,DATABYTES=”500000”
1.1.1.2.:allow,DATABYTES=”5000000”
A second, more dynamic possibility would be to use the auth.cdb method as in
http://qmail.jms1.net/scripts/mkauth.shtml
Both would simply overwrite the databytes set in the config
Point 2
You could have just done a “svc –d /service/qmail-send” to stop the
outgoing messages and given you more time to deal with individual messages.
In addition, user education is a good start but after years and years of
that I still have people sending 75 MB emails to gmail and sorts.
Or you can create a smtproutes file entry for those domains and route the
emails to a BW limited server.
You can install a second qmail on the server and bind this qmail-send to a
specific IP address (qmail-1.03-*bind*-interface.*patch*).
I use this to queue outgoing per service/domain on single machines because
of spf and sorts.
After that it is up to your firewall skills to throttle any from IP2 =>
destination:25
3.
Search for qmail-cleaner on the net, it’s a python script in combination with qmhandle
Other than that you can use the Webmin module for qmail, quiet nicely actually
Regards
torsten
*Sent:* 23 March 2011 14:43
*Subject:* [qmr] --SPAM-- Qmail Attachment
Hi,
I have a Qmail server running in a corprate enviroment since 3 years. I
have 3 queries.. Somebody please suggest me if these can be solved :-)
1. I have set the attachment size in in /var/*qmail*/control/databytes.
Now the size what I have specified in the databytes applies to all the
users. Is there a way I can specify different attachment size for different
catagory of users, say for developers is 4M, executives, is 8M, and
something which is how possible on MS exchange?
2. Marking on the above point, since we have attachment size set globally
to all the mailboxes, there are situations when there is possibility of
choking our internet bandwidth when every body are sending mails with
attachments. This is effecting our business mails to reach the recipients
on time as it is a first come first out. Is there a way I can defer all the
mails other than the business mails which are in the queue? LIke ex. If in
queue I see so many mails to Yahoo, hotmail & the client domains too & I
just need to defer the mails going to yahoo,hotmail and allow for client
domains only.
Since there was a internet bandwidth choke, I had to delete all the emails
in queue and we lost all business related mails along with the personal
mails.
3. I am using qmHandle to see all the emails in queue. Is there a better
tool which helps in the queue management and queue monitoring?
Thanks,
Ravi Bhargav
Ravi Bhargav
2011-03-23 15:52:54 UTC
Permalink
Thx Torsten for the quick response.
I will give out a try & will post the results :-)
Thx
Ravi

Sent from my Nokia Phone
-----Original Message-----
From: Torsten Kersandt
Sent: 23/03/2011 9:02:04 PM
Subject: RE: [qmr] --SPAM-- Qmail Attachment

Hi Ravi



To point 1

A almost easy way to deal with databytes per user is to use the
/etc/tcp.smtp file but this requires all PC's in the network to have fixed
IP's



You can set the DATABYTES variable from tcpserver, just like RELAYCLIENT.

1.1.1.1.:allow,DATABYTES="500000"

1.1.1.2.:allow,DATABYTES="5000000"



A second, more dynamic possibility would be to use the auth.cdb method as in

http://qmail.jms1.net/scripts/mkauth.shtml



Both would simply overwrite the databytes set in the config



Point 2

You could have just done a "svc -d /service/qmail-send" to stop the outgoing
messages and given you more time to deal with individual messages.

In addition, user education is a good start but after years and years of
that I still have people sending 75 MB emails to gmail and sorts.



Or you can create a smtproutes file entry for those domains and route the
emails to a BW limited server.

You can install a second qmail on the server and bind this qmail-send to a
specific IP address (qmail-1.03-bind-interface.patch).

I use this to queue outgoing per service/domain on single machines because
of spf and sorts.

After that it is up to your firewall skills to throttle any from IP2 =>
destination:25



3.

Search for qmail-cleaner on the net, it's a python script in combination
with qmhandle
Other than that you can use the Webmin module for qmail, quiet nicely
actually

Regards
torsten







From: Ravi bhargav [mailto:ravibhargav76-***@public.gmane.org]
Sent: 23 March 2011 14:43
To: qmr-iGp6mRlwfsr/sFSC9fAAV0B+***@public.gmane.org
Subject: [qmr] --SPAM-- Qmail Attachment



Hi,



I have a Qmail server running in a corprate enviroment since 3 years. I
have 3 queries.. Somebody please suggest me if these can be solved :-)



1. I have set the attachment size in in /var/qmail/control/databytes. Now
the size what I have specified in the databytes applies to all the users. Is
there a way I can specify different attachment size for different catagory
of users, say for developers is 4M, executives, is 8M, and something which
is how possible on MS exchange?



2. Marking on the above point, since we have attachment size set globally to
all the mailboxes, there are situations when there is possibility of choking
our internet bandwidth when every body are sending mails with attachments.
This is effecting our business mails to reach the recipients on time as it
is a first come first out. Is there a way I can defer all the mails other
than the business mails which are in the queue? LIke ex. If in queue I see
so many mails to Yahoo, hotmail & the client domains too & I just need to
defer the mails going to yahoo,hotmail and allow for client domains only.

Since there was a internet bandwidth choke, I had to delete all the emails
in queue and we lost all business related mails along with the personal
mails.



3. I am using qmHandle to see all the emails in queue. Is there a better
tool which helps in the queue management and queue monitoring?



Thanks,



Ravi Bhargav
Loading...