Reputation
475
Top tag
Next privilege 500 Rep.
Access review queues
Badges
6 18
Newest
 Altruist
Impact
~32k people reached

Apr
22
comment IMAP server can't read (open) mails using fetchmail, procmail & dovecot
Invoking Procmail as root is just odd. As a quick fix, try adding DROPPRIVS=yes but if Procmail doesn't know which user to switch to, what can it do? My recommendation would be to remove Procmail from the combo entirely at this point, as your Procmail recipe doesn't appear to do anything useful (which could not otherwise be configured directly in Sendmail or Postfix; I'd certainly recommend switching to the latter if you do not have monumental reasons to choose the former, but that's outside the scope of this discussion).
Apr
18
comment IMAP server can't read (open) mails using fetchmail, procmail & dovecot
I can further guess that the directory was removed by ... something and that Dovecot (??) then created it but didn't know what the correct owner and permissions would be, and so left them at root.
Apr
18
comment IMAP server can't read (open) mails using fetchmail, procmail & dovecot
The basic problem appears to be that /data/maildir/dlp is owned by the wrong user, but again, with only guesses as to what it's supposed to be, you'll need to add more details if you need more help.
Apr
18
comment IMAP server can't read (open) mails using fetchmail, procmail & dovecot
Without details about your delivery setup, it's pure guesswork. Procmail should normally run as yourself and thus not be able to create root-owned files; but of course, if you run Procmail as root and have an /etc/procmailrc which creates directories, it could be the culprit.
Apr
18
comment IMAP server can't read (open) mails using fetchmail, procmail & dovecot
Whatever you do, don't chmod 777 anything, ever unless you know exactly what you are doing. Creating world-writable root-owned files is a recipe for disaster.
Apr
12
comment Filename length limits on linux?
Also, e.g. the Python os.pathconf() module will have some answers; if the Python port is any good, they should be reasonable.
Apr
12
comment Filename length limits on linux?
A simple portable way to find the maximum length empirically is to write a program which creates longer and longer directory chains, and see where it fails. You won't know exactly why it fails (though you would hope for a suggestive human-readable error message) but you'll know how far you can safely go. Remember to check for both individual directory length, relative pathname length, and absolute pathname length.
Apr
5
comment How to prevent “ps” reporting its own process?
More generally, the options to ps are notoriously non-portable, so without information about which platform this is for, this answer isn't very helpful. Furthermore, this is obviously not adequate when you are not sure that the process you are looking for is not a process leader (i.e. this may help if your target is a daemon, but not generally otherwise).
Feb
2
comment SSH remote execute command with special chars
If you don't need double quotes, using single quotes around the command will simplify things a great deal. Though you'll still need to escape some things from the remote shell.
Feb
2
comment Sending mail from a user supplied email address
Repeat: There are too many unspecified circumstances. Show us the mail you are sending "before" and "after" and we can judge whether it looks sane.
Feb
2
comment Sending mail from a user supplied email address
I mean forgery in the technical sense that you are putting in a From: address which is not yours.
Feb
2
comment Transport rule disclaimer in new emails before sending
Disclaimers on emails are extremely silly in the vast majority of cases.
Feb
2
comment Sending mail from a user supplied email address
There are too many unspecified circumstances. On the face of it, if the user supplied their own address and authorized you to send email on their behalf, everything should be fine. However, if they mistyped it, and/or if their domain admin has set a draconian SPF policy, and/or if the recipient is paranoid about forgeries, and/or your forgery is very clumsy, it might not work as you hope.
Jan
28
comment Where does an unconfigured procmail put incoming mails?
They probably went somewhere - Postfix would be configured to catch any error from Procmail, and Procmail should certainly raise one if it didn't know where to write a message. But I'm not able to guess where that might be.
Jan
1
comment Where does an unconfigured procmail put incoming mails?
There is no well-defined standard answer to this; it depends entirely on your virtual user architecture, and in particular, how Postfix invokes Procmail in this situation (if at all). We can speculate that it runs as user postfix (or mail, sendmail, what have you); does this user have a mailbox?
Nov
30
comment Email, forwarded by procmail, rejected by Gmail
And it goes without saying, really; there is no reason Gmail could not start blocking any particular sender at any point in time, regardless of their local configuration or the content of their email. Their network, their policy, their rules.
Oct
30
comment find command + enable Exit status to be diff then 0 when not match
The trailing * on the egrep regex is completely redundant. Since you are not using egrep regular expression syntax, plain old grep might be a few microseconds faster.
Oct
19
comment How to reconnect to a disconnected ssh session
@kbyrd Ideally, the OP could switch to this answer instead. Less ideally, it doesn't really matter; the accept mark is just one of several signals to future visitors. But this answer should get a lot more upvotes to properly signal it as "really the correct answer". In the meantime, of course, you are free to edit your own answer, either to point to this one, or to include this information in yours.
Sep
20
comment rt-mailgate not making tickets with fetchmail and procmail
As always, a trailing .* on a regular expression is useless.
Sep
20
comment rt-mailgate not making tickets with fetchmail and procmail
--no-verify-ssl is not doing anything when you are not connecting to a https URL.