Hi all,
I am running sendmail with MailScanner on CentOS. I want to enable some restrictions.
Restrictions are given below.
All clients Currently can send Bcc from their workstations as usual. I want to disable (block Bcc) that feature. Can I do it from the Sendmail Server ?
All clients currently can send Cc form their workstations as usual. I want to limit it. Let's say about 5 Cc s .
All incoming mails are forwarded to another email address by using an alias .
pls see below for ,
/etc/aliases
john: john,mailbackup@example.com userx: userx,mailbackup@example.com
The above for incoming mail.
Can I make a copy of ALL OUTGOING mail to one email address? let's say mailoutgoing@example.com
And also enabling quota.
What is the best way to add quota?
last feature is adding a Global Address Book. Let me explain about it. Let's say In MS exchange server, Whenever users are added, Those names will be available In a Global Address book. Then, No need to add email addresses to client's email programmes such as outlook express or MS outlook.
Can I enable such a feature ?
your comments are welcome.
Indunil Jayasooriya wrote:
Hi all,
I am running sendmail with MailScanner on CentOS. I want to enable some restrictions.
Restrictions are given below.
All clients Currently can send Bcc from their workstations as usual. I want to disable (block Bcc) that feature. Can I do it from the Sendmail Server ?
No...or it will take some serious ruleset creation. Better install libmilter (sendmail-devel package) and use mimedefang.
All clients currently can send Cc form their workstations as usual. I want to limit it. Let's say about 5 Cc s .
Same as above if not more difficult to achieve with sendmail rulesets.
All incoming mails are forwarded to another email address by using an alias .
pls see below for ,
/etc/aliases
john: john, mailbackup@example.com mailto:mailbackup@example.com userx: userx,mailbackup@example.com mailto:mailbackup@example.com
The above for incoming mail.
Better use .forward rules.
Can I make a copy of ALL OUTGOING mail to one email address? let's say mailoutgoing@example.com mailto:mailoutgoing@example.com
mimedefang.
And also enabling quota.
What is the best way to add quota?
Filesystem quotas?
last feature is adding a Global Address Book. Let me explain about it. Let's say In MS exchange server, Whenever users are added, Those names will be available In a Global Address book. Then, No need to add email addresses to client's email programmes such as outlook express or MS outlook.
Can I enable such a feature ?
The MS GAB is basically a LDAP directory just as Active Directory is really LDAP + Kerberos + DNS + M$ extort^H^H^Hensions
On 8/15/07, Feizhou feizhou@graffiti.net wrote:
Indunil Jayasooriya wrote:
Hi all,
I am running sendmail with MailScanner on CentOS. I want to enable some restrictions.
Restrictions are given below.
All clients Currently can send Bcc from their workstations as usual. I want to disable (block Bcc) that feature. Can I do it from the Sendmail Server ?
No...or it will take some serious ruleset creation. Better install libmilter (sendmail-devel package) and use mimedefang.
All clients currently can send Cc form their workstations as usual. I want to limit it. Let's say about 5 Cc s .
Same as above if not more difficult to achieve with sendmail rulesets.
All incoming mails are forwarded to another email address by using an alias .
pls see below for ,
/etc/aliases
john: john, mailbackup@example.com mailto:mailbackup@example.com userx: userx,mailbackup@example.com mailto:mailbackup@example.com
The above for incoming mail.
Better use .forward rules.
Can I make a copy of ALL OUTGOING mail to one email address? let's say mailoutgoing@example.com mailto:mailoutgoing@example.com
mimedefang.
And also enabling quota.
What is the best way to add quota?
Filesystem quotas?
quotas to limit the mailbox size
e.g /var/spool/mail/username * *
last feature is adding a Global Address Book. Let me explain about it. Let's say In MS exchange server, Whenever users are added, Those names will be available In a Global Address book. Then, No need to add email addresses to client's email programmes such as outlook express or MS outlook.
Can I enable such a feature ?
The MS GAB is basically a LDAP directory just as Active Directory is really LDAP + Kerberos + DNS + M$ extort^H^H^Hensions _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
> > And also enabling quota. > > What is the best way to add quota? > Filesystem quotas?
quotas to limit the mailbox size
e.g /var/spool/mail/username
I thought you might be using mbox...so...will filesystem quotas do it for you then? If it will, just enable filesystem quotas and the system will start limiting how large the mbox files can get. man edquota, quota, ...
On 8/15/07, Feizhou feizhou@graffiti.net wrote:
> > And also enabling quota. > > What is the best way to add quota? > Filesystem quotas?
quotas to limit the mailbox size
e.g /var/spool/mail/username
I thought you might be using mbox...so...will filesystem quotas do it for you then? If it will, just enable filesystem quotas and the system will start limiting how large the mbox files can get. man edquota, quota, ...
Thanks for your info. quota RPM has been instaled by the default instalation.
Pls see below.
[root@mailgw ~]# rpm -qa |grep quota quota-3.12-5
I will have to edit /etc/fstab . I will have to add usrquota,grpquota
Now, my question is to which partition should I have to add usrquota,grpquota.
Is it to /var partion should I have to add quota as All incoming mail will be stored as /var/spool/mail/username
or
Is it to /home partion should I have to add quota as All users are system users ( i.e- /etc/passwd, /etc/shadow and /etc/group
to create account I use traditional useradd command as follows. useradd username
my partion table of the hard disk is as follows. /var and /home partion are marked in BOLD letters. pls see below
[root@mailgw ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 39G 1.6G 35G 5% / /dev/sda1 2.9G 53M 2.7G 2% /boot none 251M 0 251M 0% /dev/shm /dev/sda5 39G 201M 37G 1% /home /dev/sda7 6.8G 2.4G 4.1G 38% /opt /dev/sda6 6.8G 48M 6.4G 1% /tmp /dev/sda8 52G 1.4G 48G 3% /var
YOUR comments are welcome .
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I will have to edit /etc/fstab . I will have to add usrquota,grpquota
Good research.
Now, my question is to which partition should I have to add usrquota,grpquota.
Is it to /var partion should I have to add quota as All incoming mail will be stored as /var/spool/mail/username
According to your list of filesystems below, yes, /var definitely needs quota turned on.
or
Is it to /home partion should I have to add quota as All users are system users ( i.e- /etc/passwd, /etc/shadow and /etc/group
Only if you intend to lump both mailbox quota and home directory quota together. If you need to enable separate quotas for these...you need another solution. If you do not need quotas for anything but mail, just turn on quotas for /var.
to create account I use traditional useradd command as follows. useradd username
my partion table of the hard disk is as follows. /var and /home partion are marked in BOLD letters. pls see below
[root@mailgw ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 39G 1.6G 35G 5% / /dev/sda1 2.9G 53M 2.7G 2% /boot none 251M 0 251M 0% /dev/shm /dev/sda5 39G 201M 37G 1% /home /dev/sda7 6.8G 2.4G 4.1G 38% /opt /dev/sda6 6.8G 48M 6.4G 1% /tmp /dev/sda8 52G 1.4G 48G 3% /var
YOUR comments are welcome .
Hi,
Thanks once again,
ONE MORE THING IS NEEDED.
I want to limit mail sizes for both incoming and outgoing mails.
Let's say
userx@example.com can send mails up to 5MB, but can receive up to 2MB
usery@example.com can send and receive mails up to 5MB.
All the other users can send mails as usual (i.e - without restrictions)
Can procmail do it? (i-e- /etc/procmailrc - system wide configuration)
pls let me know?
On 8/16/07, Feizhou feizhou@graffiti.net wrote:
I will have to edit /etc/fstab . I will have to add usrquota,grpquota
Good research.
Now, my question is to which partition should I have to add usrquota,grpquota.
Is it to /var partion should I have to add quota as All incoming mail will be stored as /var/spool/mail/username
According to your list of filesystems below, yes, /var definitely needs quota turned on.
or
Is it to /home partion should I have to add quota as All users are system users ( i.e- /etc/passwd, /etc/shadow and /etc/group
Only if you intend to lump both mailbox quota and home directory quota together. If you need to enable separate quotas for these...you need another solution. If you do not need quotas for anything but mail, just turn on quotas for /var.
to create account I use traditional useradd command as follows. useradd username
my partion table of the hard disk is as follows. /var and /home partion are marked in BOLD letters. pls see below
[root@mailgw ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 39G 1.6G 35G 5% / /dev/sda1 2.9G 53M 2.7G 2% /boot none 251M 0 251M 0% /dev/shm /dev/sda5 39G 201M 37G 1% /home /dev/sda7 6.8G 2.4G 4.1G 38% /opt /dev/sda6 6.8G 48M 6.4G 1% /tmp /dev/sda8 52G 1.4G 48G 3% /var
YOUR comments are welcome .
Indunil Jayasooriya wrote:
Hi,
Thanks once again,
ONE MORE THING IS NEEDED.
I want to limit mail sizes for both incoming and outgoing mails.
Let's say
userx@example.com mailto:userx@example.com can send mails up to 5MB, but can receive up to 2MB
usery@example.com mailto:usery@example.com can send and receive mails up to 5MB.
Is this 2/5MB after encoding or before encoding of attachments? Encoding will increase data size about 25%.
All the other users can send mails as usual (i.e - without restrictions)
Can procmail do it? (i-e- /etc/procmailrc - system wide configuration)
procmail is a local delivery agent and so no, it cannot do it.
pls let me know?
mimedefang? You have per user settings and so setting a system wide setting in sendmail configuration will not help and sendmail does not differentiate between outgoing and incoming limits so you are left with a milter solution and so maybe mimedefang is your best bet.
I know another centos list subscriber, Les, will swear by mimedefang.
I want to limit mail sizes for both incoming and outgoing mails.
Let's say
userx@example.com mailto:userx@example.com can send mails up to 5MB, but can receive up to 2MB
usery@example.com mailto:usery@example.com can send and receive mails up to 5MB.
Is this 2/5MB after encoding or before encoding of attachments? Encoding will increase data size about 25%.
before ENCODING.
pls let me know?
mimedefang? You have per user settings and so setting a system wide setting in sendmail configuration will not help and sendmail does not differentiate between outgoing and incoming limits so you are left with a milter solution and so maybe mimedefang is your best bet.
OK , THANKS .
I know another centos list subscriber, Les, will swear by mimedefang.
Hi,
I got Centos 5 server up and running. sendmail and MailScanner are running .
pls see below for installed sendmail pkgs.
[root@mailgw ~]# rpm -qa |grep sendmail sendmail-cf-8.13.8-2.el5 sendmail-8.13.8-2.el5 sendmail-devel-8.13.8-2.el5
I installed below MailScanner-4.62.9-3.rpm.tar.gz
MailScanner-4.62.9-3.rpm.tar.gz
Then, I installed mimedefang by using yum.
yum install mimedefang
Now, I can find some files @ /etc/mail
below are files.
mimedefang-filter sa-mimedefang.cf sa-mimedefang.cf.example
I first want to block Bcc and limit Cc to about 5 users. I googled a lot. But, I am still not be able to achieve this task.
will I have to edit /etc/mail/mimedefang-filter to block Bcc and to limit Cc .
Have you done it?
your comments .
On 8/17/07, Indunil Jayasooriya indunil75@gmail.com wrote:
I want to limit mail sizes for both incoming and outgoing mails.
Let's say
userx@example.com mailto:userx@example.com can send mails up to 5MB, but can receive up to 2MB
usery@example.com mailto:usery@example.com can send and receive
mails
up to 5MB.
Is this 2/5MB after encoding or before encoding of attachments? Encoding
will increase data size about 25%.
before ENCODING.
pls let me know?
mimedefang? You have per user settings and so setting a system wide setting in sendmail configuration will not help and sendmail does not differentiate between outgoing and incoming limits so you are left with a milter solution and so maybe mimedefang is your best bet.
OK , THANKS .
I know another centos list subscriber, Les, will swear by mimedefang.
-- Thank you Indunil Jayasooriya
Now, I can find some files @ /etc/mail
below are files.
mimedefang-filter sa-mimedefang.cf http://sa-mimedefang.cf sa-mimedefang.cf.example
I first want to block Bcc and limit Cc to about 5 users. I googled a lot. But, I am still not be able to achieve this task.
will I have to edit /etc/mail/mimedefang-filter to block Bcc and to limit Cc .
Have you done it?
Sorry, i run postfix + clamav-milter + spamass-milter.
Please ask Les, the sendmail and mimedefang guru. All I can say is that from what I understand of Les' comments, you can modify the perl code of mimedefang to do what you want.