Is it possible to limit delivery of mail to select user mailboxes to specific hours in Postfix?Postfix...
Why did Bush enact a completely different foreign policy to that which he espoused during the 2000 Presidential election campaign?
What's the rationale behind the objections to these measures against human trafficking?
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
Real time react web app with pusher and laravel
Eww, those bytes are gross
It took me a lot of time to make this, pls like. (YouTube Comments #1)
How to replace the content to multiple files?
Why didn't Eru and/or the Valar intervene when Sauron corrupted Númenor?
Can the Count of Monte Cristo's calculation of poison dosage be explained?
How experienced do I need to be to go on a photography workshop?
How can I deal with a significant flaw I found in my previous supervisor’s paper?
Slicing User Stories
Inalienable or irrefutable
Numbers of Exaggeration in Talmud
On what did Lego base the appearance of the new Hogwarts minifigs?
PGF Plot settings
The terminology for an excluded solution
Dilemma of explaining to interviewer that he is the reason for declining second interview
How to interpret this PubChem record of L-Alanine
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
Discrepancy in P/E ratio of stocks in Robinhood app?
How to approximate rolls for potions of healing using only d6's?
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
Integral inequality of length of curve
Is it possible to limit delivery of mail to select user mailboxes to specific hours in Postfix?
Postfix Stagger/Rate Limit Outbound MailMail sent from local Postfix marked as “possible phishing” in OutlookEmails Generated From Our Linux Server are Blocked By Our Exchange Server (That Has Barracuda)Postfix MX lookup for delivery instead of local delivery for specific domainsHow do I limit sender domain for mail sent to specific forwarding addresses in Postfix?Dynamically limit postfix attachment sizePostfix and PostFWD (Postfix Firewall Daemon) - Integrating the twoPostfix - Slow sending, duplicate sendingHybrid scheme with some mailboxes as POP3 (Postfix) and other on O365Postfix ignore relayhost for specific source servers (localhost)
In an attempt to enforce company hours and lessen employee stress, I would like to limit the delivery of email to their user mailboxes to business hours while not limiting outbound or normal mail receipt by our servers.
I know that MS Exchange offers something like this, but we are an all Linux/FreeBSD shop and use postfix as our mail server.
postfix
New contributor
add a comment |
In an attempt to enforce company hours and lessen employee stress, I would like to limit the delivery of email to their user mailboxes to business hours while not limiting outbound or normal mail receipt by our servers.
I know that MS Exchange offers something like this, but we are an all Linux/FreeBSD shop and use postfix as our mail server.
postfix
New contributor
1
Well, the first thing that comes to mind is to start and stop the pop3/imap service via cron job. The mails would be delivered to the mailbox, but the user can't retrieve them during out of office hours.
– Gerald Schneider
22 hours ago
Thanks, Gerald, but I only want this to affect specific users. For instance, the engineering and support teams communicate almost 24x7, so they should not be affected. I just want others (finance/accounting, HR, marketing, etc.), to be able to relax through their weekends and holidays without stress that comes with an email that arrives at 5:15P on Friday since they can't do anything until Monday, anyway.
– Timpraetor
21 hours ago
add a comment |
In an attempt to enforce company hours and lessen employee stress, I would like to limit the delivery of email to their user mailboxes to business hours while not limiting outbound or normal mail receipt by our servers.
I know that MS Exchange offers something like this, but we are an all Linux/FreeBSD shop and use postfix as our mail server.
postfix
New contributor
In an attempt to enforce company hours and lessen employee stress, I would like to limit the delivery of email to their user mailboxes to business hours while not limiting outbound or normal mail receipt by our servers.
I know that MS Exchange offers something like this, but we are an all Linux/FreeBSD shop and use postfix as our mail server.
postfix
postfix
New contributor
New contributor
New contributor
asked 22 hours ago
TimpraetorTimpraetor
63
63
New contributor
New contributor
1
Well, the first thing that comes to mind is to start and stop the pop3/imap service via cron job. The mails would be delivered to the mailbox, but the user can't retrieve them during out of office hours.
– Gerald Schneider
22 hours ago
Thanks, Gerald, but I only want this to affect specific users. For instance, the engineering and support teams communicate almost 24x7, so they should not be affected. I just want others (finance/accounting, HR, marketing, etc.), to be able to relax through their weekends and holidays without stress that comes with an email that arrives at 5:15P on Friday since they can't do anything until Monday, anyway.
– Timpraetor
21 hours ago
add a comment |
1
Well, the first thing that comes to mind is to start and stop the pop3/imap service via cron job. The mails would be delivered to the mailbox, but the user can't retrieve them during out of office hours.
– Gerald Schneider
22 hours ago
Thanks, Gerald, but I only want this to affect specific users. For instance, the engineering and support teams communicate almost 24x7, so they should not be affected. I just want others (finance/accounting, HR, marketing, etc.), to be able to relax through their weekends and holidays without stress that comes with an email that arrives at 5:15P on Friday since they can't do anything until Monday, anyway.
– Timpraetor
21 hours ago
1
1
Well, the first thing that comes to mind is to start and stop the pop3/imap service via cron job. The mails would be delivered to the mailbox, but the user can't retrieve them during out of office hours.
– Gerald Schneider
22 hours ago
Well, the first thing that comes to mind is to start and stop the pop3/imap service via cron job. The mails would be delivered to the mailbox, but the user can't retrieve them during out of office hours.
– Gerald Schneider
22 hours ago
Thanks, Gerald, but I only want this to affect specific users. For instance, the engineering and support teams communicate almost 24x7, so they should not be affected. I just want others (finance/accounting, HR, marketing, etc.), to be able to relax through their weekends and holidays without stress that comes with an email that arrives at 5:15P on Friday since they can't do anything until Monday, anyway.
– Timpraetor
21 hours ago
Thanks, Gerald, but I only want this to affect specific users. For instance, the engineering and support teams communicate almost 24x7, so they should not be affected. I just want others (finance/accounting, HR, marketing, etc.), to be able to relax through their weekends and holidays without stress that comes with an email that arrives at 5:15P on Friday since they can't do anything until Monday, anyway.
– Timpraetor
21 hours ago
add a comment |
1 Answer
1
active
oldest
votes
IMAP servers provide filtering & access control that can be used to "hide" the mail, while leaving delivery almost untouched.
During all hours stash away mails you do not want to see work done on (example code for global sieve filtering, works with dovecot):
if allof(
anyof(
envelope :is "To" "will.rested@ourcompany.example",
envelope :is "To" "sheila.sleepwell@ourcompany.example"
),
not anyof (
envelope :matches "From" "MAILER-DAEMON",
address :domain "From" "ourcompany.example",
address :domain "From" "emergencyservice.example"
)
anyof (
date :zone "-0500" :is "received" "weekday" "6",
allof(date :zone "-0500" :is "received" "weekday" "5",
date :zone "-0500" :value "gt" "received" "hour" "21")
)
) {
fileinto :create "Embargo";
stop;
}
During office hours move mail from the Embargo folder to the INBOX (example for dovecot):
$ cat /etc/cron.hourly/disembark
is_work_day || exit 0
doveadm -u "will.rested@ourcompany.example" move INBOX mailbox Embargo
doveadm -u "sheila.sleepwell@ourcompany.example" move INBOX mailbox Embargo
You can then deny access to the Embargo mailbox (example for dovecot acl).
$ cat /mail/gobal.acl
Embargo anyone
I would recommend leaving out the last step.
Not subscribing the "Embargo" mailbox should be entirely sufficient to effect a nudge into the right direction, while not creating strong incentives to work around the measure, should special circumstances require receiving mail during unusual office time.
Caveats:
- it is a technical solution to non-technical problem: expect underwhelming results
- the name of the measure might have great effect on how it is perceived
- e.g. embargo, anti-stress, resting
- you probably need to think about (office, mail server) time zones before implementing
- sieve saves you the headache, other mail filtering may not be so generous
- simple move will break existing mail sorting
sieve-refilter
might do the trick, but is not well tested for such purpose
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Timpraetor is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956456%2fis-it-possible-to-limit-delivery-of-mail-to-select-user-mailboxes-to-specific-ho%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
IMAP servers provide filtering & access control that can be used to "hide" the mail, while leaving delivery almost untouched.
During all hours stash away mails you do not want to see work done on (example code for global sieve filtering, works with dovecot):
if allof(
anyof(
envelope :is "To" "will.rested@ourcompany.example",
envelope :is "To" "sheila.sleepwell@ourcompany.example"
),
not anyof (
envelope :matches "From" "MAILER-DAEMON",
address :domain "From" "ourcompany.example",
address :domain "From" "emergencyservice.example"
)
anyof (
date :zone "-0500" :is "received" "weekday" "6",
allof(date :zone "-0500" :is "received" "weekday" "5",
date :zone "-0500" :value "gt" "received" "hour" "21")
)
) {
fileinto :create "Embargo";
stop;
}
During office hours move mail from the Embargo folder to the INBOX (example for dovecot):
$ cat /etc/cron.hourly/disembark
is_work_day || exit 0
doveadm -u "will.rested@ourcompany.example" move INBOX mailbox Embargo
doveadm -u "sheila.sleepwell@ourcompany.example" move INBOX mailbox Embargo
You can then deny access to the Embargo mailbox (example for dovecot acl).
$ cat /mail/gobal.acl
Embargo anyone
I would recommend leaving out the last step.
Not subscribing the "Embargo" mailbox should be entirely sufficient to effect a nudge into the right direction, while not creating strong incentives to work around the measure, should special circumstances require receiving mail during unusual office time.
Caveats:
- it is a technical solution to non-technical problem: expect underwhelming results
- the name of the measure might have great effect on how it is perceived
- e.g. embargo, anti-stress, resting
- you probably need to think about (office, mail server) time zones before implementing
- sieve saves you the headache, other mail filtering may not be so generous
- simple move will break existing mail sorting
sieve-refilter
might do the trick, but is not well tested for such purpose
add a comment |
IMAP servers provide filtering & access control that can be used to "hide" the mail, while leaving delivery almost untouched.
During all hours stash away mails you do not want to see work done on (example code for global sieve filtering, works with dovecot):
if allof(
anyof(
envelope :is "To" "will.rested@ourcompany.example",
envelope :is "To" "sheila.sleepwell@ourcompany.example"
),
not anyof (
envelope :matches "From" "MAILER-DAEMON",
address :domain "From" "ourcompany.example",
address :domain "From" "emergencyservice.example"
)
anyof (
date :zone "-0500" :is "received" "weekday" "6",
allof(date :zone "-0500" :is "received" "weekday" "5",
date :zone "-0500" :value "gt" "received" "hour" "21")
)
) {
fileinto :create "Embargo";
stop;
}
During office hours move mail from the Embargo folder to the INBOX (example for dovecot):
$ cat /etc/cron.hourly/disembark
is_work_day || exit 0
doveadm -u "will.rested@ourcompany.example" move INBOX mailbox Embargo
doveadm -u "sheila.sleepwell@ourcompany.example" move INBOX mailbox Embargo
You can then deny access to the Embargo mailbox (example for dovecot acl).
$ cat /mail/gobal.acl
Embargo anyone
I would recommend leaving out the last step.
Not subscribing the "Embargo" mailbox should be entirely sufficient to effect a nudge into the right direction, while not creating strong incentives to work around the measure, should special circumstances require receiving mail during unusual office time.
Caveats:
- it is a technical solution to non-technical problem: expect underwhelming results
- the name of the measure might have great effect on how it is perceived
- e.g. embargo, anti-stress, resting
- you probably need to think about (office, mail server) time zones before implementing
- sieve saves you the headache, other mail filtering may not be so generous
- simple move will break existing mail sorting
sieve-refilter
might do the trick, but is not well tested for such purpose
add a comment |
IMAP servers provide filtering & access control that can be used to "hide" the mail, while leaving delivery almost untouched.
During all hours stash away mails you do not want to see work done on (example code for global sieve filtering, works with dovecot):
if allof(
anyof(
envelope :is "To" "will.rested@ourcompany.example",
envelope :is "To" "sheila.sleepwell@ourcompany.example"
),
not anyof (
envelope :matches "From" "MAILER-DAEMON",
address :domain "From" "ourcompany.example",
address :domain "From" "emergencyservice.example"
)
anyof (
date :zone "-0500" :is "received" "weekday" "6",
allof(date :zone "-0500" :is "received" "weekday" "5",
date :zone "-0500" :value "gt" "received" "hour" "21")
)
) {
fileinto :create "Embargo";
stop;
}
During office hours move mail from the Embargo folder to the INBOX (example for dovecot):
$ cat /etc/cron.hourly/disembark
is_work_day || exit 0
doveadm -u "will.rested@ourcompany.example" move INBOX mailbox Embargo
doveadm -u "sheila.sleepwell@ourcompany.example" move INBOX mailbox Embargo
You can then deny access to the Embargo mailbox (example for dovecot acl).
$ cat /mail/gobal.acl
Embargo anyone
I would recommend leaving out the last step.
Not subscribing the "Embargo" mailbox should be entirely sufficient to effect a nudge into the right direction, while not creating strong incentives to work around the measure, should special circumstances require receiving mail during unusual office time.
Caveats:
- it is a technical solution to non-technical problem: expect underwhelming results
- the name of the measure might have great effect on how it is perceived
- e.g. embargo, anti-stress, resting
- you probably need to think about (office, mail server) time zones before implementing
- sieve saves you the headache, other mail filtering may not be so generous
- simple move will break existing mail sorting
sieve-refilter
might do the trick, but is not well tested for such purpose
IMAP servers provide filtering & access control that can be used to "hide" the mail, while leaving delivery almost untouched.
During all hours stash away mails you do not want to see work done on (example code for global sieve filtering, works with dovecot):
if allof(
anyof(
envelope :is "To" "will.rested@ourcompany.example",
envelope :is "To" "sheila.sleepwell@ourcompany.example"
),
not anyof (
envelope :matches "From" "MAILER-DAEMON",
address :domain "From" "ourcompany.example",
address :domain "From" "emergencyservice.example"
)
anyof (
date :zone "-0500" :is "received" "weekday" "6",
allof(date :zone "-0500" :is "received" "weekday" "5",
date :zone "-0500" :value "gt" "received" "hour" "21")
)
) {
fileinto :create "Embargo";
stop;
}
During office hours move mail from the Embargo folder to the INBOX (example for dovecot):
$ cat /etc/cron.hourly/disembark
is_work_day || exit 0
doveadm -u "will.rested@ourcompany.example" move INBOX mailbox Embargo
doveadm -u "sheila.sleepwell@ourcompany.example" move INBOX mailbox Embargo
You can then deny access to the Embargo mailbox (example for dovecot acl).
$ cat /mail/gobal.acl
Embargo anyone
I would recommend leaving out the last step.
Not subscribing the "Embargo" mailbox should be entirely sufficient to effect a nudge into the right direction, while not creating strong incentives to work around the measure, should special circumstances require receiving mail during unusual office time.
Caveats:
- it is a technical solution to non-technical problem: expect underwhelming results
- the name of the measure might have great effect on how it is perceived
- e.g. embargo, anti-stress, resting
- you probably need to think about (office, mail server) time zones before implementing
- sieve saves you the headache, other mail filtering may not be so generous
- simple move will break existing mail sorting
sieve-refilter
might do the trick, but is not well tested for such purpose
edited 20 hours ago
answered 20 hours ago
anxanx
1,7491820
1,7491820
add a comment |
add a comment |
Timpraetor is a new contributor. Be nice, and check out our Code of Conduct.
Timpraetor is a new contributor. Be nice, and check out our Code of Conduct.
Timpraetor is a new contributor. Be nice, and check out our Code of Conduct.
Timpraetor is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956456%2fis-it-possible-to-limit-delivery-of-mail-to-select-user-mailboxes-to-specific-ho%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Well, the first thing that comes to mind is to start and stop the pop3/imap service via cron job. The mails would be delivered to the mailbox, but the user can't retrieve them during out of office hours.
– Gerald Schneider
22 hours ago
Thanks, Gerald, but I only want this to affect specific users. For instance, the engineering and support teams communicate almost 24x7, so they should not be affected. I just want others (finance/accounting, HR, marketing, etc.), to be able to relax through their weekends and holidays without stress that comes with an email that arrives at 5:15P on Friday since they can't do anything until Monday, anyway.
– Timpraetor
21 hours ago