- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Removing mails more than 1 day
Operating System - Linux
1753792
Members
7164
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 05:55 PM
тАО05-15-2007 05:55 PM
Removing mails more than 1 day
Hi guys,
I am using sendmails in my box, is there a way to remove mails more than a specified period of time? Thanks.
Best regards
Henry
I am using sendmails in my box, is there a way to remove mails more than a specified period of time? Thanks.
Best regards
Henry
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2007 08:50 PM
тАО05-15-2007 08:50 PM
Re: Removing mails more than 1 day
Shalom Henry,
That depends how you store them. If they are sitting in a file in /var/spool/mail raw, its difficult. You'd need to write a script to edit that file.
Need to know a little more about how the mail is stored to assist you.
SEP
That depends how you store them. If they are sitting in a file in /var/spool/mail raw, its difficult. You'd need to write a script to edit that file.
Need to know a little more about how the mail is stored to assist you.
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2007 03:33 AM
тАО05-16-2007 03:33 AM
Re: Removing mails more than 1 day
The important thing here is which MTA are you using (qmail, sendmail, postfix, exim, etc).
See this page:
http://ftp.ccs.neu.edu/pub/CPAN/scripts/mailstuff/expire_mail.pl
See this page:
http://ftp.ccs.neu.edu/pub/CPAN/scripts/mailstuff/expire_mail.pl
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2007 05:10 AM
тАО05-16-2007 05:10 AM
Re: Removing mails more than 1 day
Hi,
...or you might want to change your sendmail behavior by set the Timeout.queuereturn to 1 day in your sendmail.mc or sendmail.cf. This behavior will send bounced message to sender if the message stay in the queue after 1 day.
for sendmail.mc:
dnl define('confTO_QUEUERETURN', '1d')dnl
then run m4 macro to regenerate sendmail.cf and put it in the right location (/etc/sendmail.cf ?).
for sendmail.cf:
O Timeout.queuereturn=1d
either way, don't forget to restart sendmail daemon.
EF
...or you might want to change your sendmail behavior by set the Timeout.queuereturn to 1 day in your sendmail.mc or sendmail.cf. This behavior will send bounced message to sender if the message stay in the queue after 1 day.
for sendmail.mc:
dnl define('confTO_QUEUERETURN', '1d')dnl
then run m4 macro to regenerate sendmail.cf and put it in the right location (/etc/sendmail.cf ?).
for sendmail.cf:
O Timeout.queuereturn=1d
either way, don't forget to restart sendmail daemon.
EF
Everything is possible, if you don't know what you're talking about.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP