Operating System - Linux
1831685 Members
2394 Online
110029 Solutions
New Discussion

Re: Something related to mail servers

 
kcpant
Trusted Contributor

Something related to mail servers

Dear Friends,

We can setup sendmail+Mailscanner to reject mails with attachments larger than a specified size, say, mails larger than 2 MB will be rejected. We can also notify the sender of such mail. Is there any mechanism by which we can notify the reciepient that the mail of larger attachment sent to him/her has been rejected by mail server?

Thanks in advance, 10 pointer for every good logic...

Thanks & regards
PreSales Specialist
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Something related to mail servers

Shalom kcpant,

Couple of ideas for you. The web based mail package squirrelmail has a 2 MB attachment default, though its not really good at the notification part.

A good place to reaserch this is http://www.senmdmail.org

Its a really comprehensive place to explore sendmail issues.

Some links:

http://www.steines.de/mailf/docs/index-4.html
procmail as a sendmail enhancement
http://www.impsec.org/email-tools/sanitizer-changelog.html
An add in product:
http://mail.cc.umanitoba.ca/faq/

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Thorsteinson
Honored Contributor

Re: Something related to mail servers

Check the Mailscanner.conf file. I believe
you can send notifications to both the
sender and recipient.
Geoff Wild
Honored Contributor

Re: Something related to mail servers

Easy - in /etc/mail/sendmail.cf

Uncomment line:

# 0 MaxMessageSize=1000000

this is the maximum message size in bytes

0 MaxMessageSize=2000000

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
kcpant
Trusted Contributor

Re: Something related to mail servers

Hi Bill,

I'm working with MailScanner & Sendmail combination from quit a long time, but haven't found a way to do the task (notification to recepient). I know notifications can be configuredf in mailscanner for each & every error, but to the sender only. can you please let me know if there is any way to set mailscanner to send notification to the recepient also?

thanks in advance.
PreSales Specialist
Tvs
Regular Advisor

Re: Something related to mail servers

hi Pant,

if u r using the squirrel mail fro mail service. edit the mail configuration file, there u can find out the maximum attachement size. try to increase the value. and in sendmail iam not aware any setting is there for rejecting these mails
kcpant
Trusted Contributor

Re: Something related to mail servers

Closing open threads..
PreSales Specialist