Current time: 09-21-2024, 03:37 PM Hello There, Guest! (LoginRegister)


Thread Closed 
New E-mail/Address creation causes disruption to Postfix
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: New E-mail/Address creation causes disruption to Postfix
Quote:normally - if a mail is not sent successfully (always a good answer (like "200 OK") after every sent part), then it should be send again....
If it's not spam then the same mail should come again...

That's right. Further, if the mail has already been accepted, postfix makes sure to not lose it afterwards. Hence, the rewrite error can be safely ignored (postfix will resume mail processing after restart).

Quote:Joxi, I've not tested but maybe we should simply do a reload postfix (SIGHUP) when a new mail account is added and not do a restart (stop - start so SIGTERM) ? have you the time to test the behavior ?

What's more, we don't even need to send a sighup when managing mail accounts. On the one hand, since we are only changing the postfix lookup tables but not any configuration values, there's no need to reload the configurations. On the other hand, postfix automatically detects changes in lookup tables and restarts the corresponding processes automatically. Hence, there's no need to reload nor restart nor anything!

Source (from postfix lookup tables docs):
Quote:If you change a local file based database such as DBM or Berkeley DB, there is no need to execute "postfix reload". Postfix uses file locking to avoid read/write access conflicts, and whenever a Postfix daemon process notices that a file has changed it will terminate before handling the next client request, so that a new process can initialize with the new database.

Cheers!
08-12-2010 06:57 PM
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
RE: New E-mail/Address creation causes disruption to Postfix - kilburn - 08-12-2010 06:57 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)