LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2009, 04:26 AM   #1
silviap
LQ Newbie
 
Registered: Mar 2009
Distribution: CentOS, Fedora, Debian
Posts: 11

Rep: Reputation: Disabled
Postfix - send emails at a given time


Hello,

I have a web application installed on a Debian server that sends out a lot of e-mails. Is there a way to configure Postfix to retain the messages in a queue and send all of them at midnight for example?

Thanks!
 
Old 04-25-2009, 11:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by silviap View Post
Hello,

I have a web application installed on a Debian server that sends out a lot of e-mails. Is there a way to configure Postfix to retain the messages in a queue and send all of them at midnight for example?

Thanks!
Not to my knowledge, but you could always have your application schedule an AT job, to send the message(s) at midnight. You don't say anything about it, so it's hard to be more specific, but if it's using a 'regular' command-line string to send the messages, the addition of an at job is fairly trivial.
 
Old 04-27-2009, 06:55 AM   #3
silviap
LQ Newbie
 
Registered: Mar 2009
Distribution: CentOS, Fedora, Debian
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for the reply. It would be easier to use the "mail" command, unfortunately I cannot change the PHP classes, it's not my code (actually I am not allowed to change them). I was just wondering if I can "play" with Postfix in order to get the job done (similar to a cron job).

Thanks!

Last edited by silviap; 04-28-2009 at 01:19 AM.
 
  


Reply



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
Postfix : wrong time on sent emails cgfreak Linux - Server 3 05-11-2013 11:41 AM
using postfix able to send out emails to yahoo accounts but not our own company email jshi99 Linux - Newbie 2 11-12-2008 11:54 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
Postfix trying to send emails internally Swanny Linux - Software 8 11-21-2007 12:19 PM
Postfix problems ! - can send but not receive emails. OzTEXS Linux - Server 9 05-05-2007 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 PM.

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
Open Source Consulting | Domain Registration