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

Sep
20
comment rt-mailgate not making tickets with fetchmail and procmail
The /usr/bin/perl is harmless (provided this is a valid path) but the fact that no log file is being created indicates that Fetchmail is not running Procmail at all (or perhaps Fetchmail is not running!). How do you invoke it? Do you get a Fetchmail log?
Sep
7
comment Emails corrupt and a winmail.dat file attachment added for only one mail box
If the user's client is doing something to the messages after they arrive, the ones delivered to Procmail should still be fine. Adding a simple .procmailrc to save a copy of every incoming message to a temporary location (:0c (newline) /tmp/safety where obviously the destination has to exist and be writable) might help narrow the scope of the problem, at least.
Aug
27
comment Postfix, procmailrc, SpamAssassin letting some but not all spam messages through
Yes, you need to set LOGFILE to a file you have write access to, and capture the log from one of these events which you want to troubleshoot. You should probably also set VERBOSE=yes, perhaps only selectively (inside the condition you want to debug?), perhaps with output to a separate log file.
Aug
26
comment Postfix, procmailrc, SpamAssassin letting some but not all spam messages through
The user comment is a placeholder which should be replaced with your actual account name; but unless you are running an antique Sendmail, this part of the .forward is completely unnecessary. In fact, most Postfix default configurations don't require any .forward at all, and will run Procmail if a .procmailrc file is detected.
Aug
26
comment Postfix, procmailrc, SpamAssassin letting some but not all spam messages through
Please update the question with a Procmail log excerpt. Obtaining one is probably also sufficient for yourself to diagnose the actual problem.
Aug
26
comment Postfix, procmailrc, SpamAssassin letting some but not all spam messages through
Unless there is a piece missing from your .procmailrc there is nothing which sets $FROM and so the whitelisting check will never succeed.
Jun
22
comment Emails corrupt and a winmail.dat file attachment added for only one mail box
Procmail by itself does nothing of the sort, but if the mailbox has a .procmailrc, that could do pretty much anything, possibly without leaving any trace in the log.
Jun
11
comment Should websites live in /var/ or /usr/ according to recommended usage?
@ceejayoz If you have more than about two categories of "stuff" it's much simpler to tell them "we follow the FHS", even though that might require some additional details for some categories of "stuff".
May
26
comment Is a reboot required to refresh permissions after adding a user to a new group?
Actually, turns out that the real problem was that I was reusing an SSH master session. Disconnecting that by removing the ControlPath socket and logging in again resolved the problem.
Mar
6
comment Bash evaluation baffling
Your cat | sed | awk abomination seems to only pick out the decimal part of the load average and using it as an integer. The diagnostics you show are not consistent with this. Are you sure this is the code you are actually running?
Mar
6
comment Load users environment variables in a cronjob
Added stuff from stackoverflow.com/a/15574078/874188 -- thanks @FedericoSierra.
Mar
6
comment Load users environment variables in a cronjob
Oh, if the Bash start-up files contain Bash-only syntax, that won't work either -- you'll get export: command not found instead. Better really to put these in a Bash script and call that from Cron. Updated answer.
Mar
6
comment Load users environment variables in a cronjob
You forgot to fix the source: command not found error. Sorry about not mentioning it in my very initial answer.
Mar
6
comment Resolve packages not found and errors during configure,make,make install in a script
This has been resolved multiple times by multiple packaging systems already. The approach taken by both RPM and Debian is to create a build wrapper which reads the dependencies from a simple spec file. This needs to be maintained by hand for every package, but there are so many other things you need to tweak anyway that this is a minor nuisance.
Mar
6
comment Bash: Output of a command is written only to screen and not to another file while using tee, what could be the reason?
You are also using double redirection. print_log appends to $log and then you pipe to tee -a $log as well. The pipe will never receive any input so you could simply remove it; or for consistency, you could change the function so it just logs to stdout. The whole thing would be more elegant if you just added done | tee -a "$log" at the end of the loop, rather than redirect every command inside the loop. Then you can fix wget by just adding 2>&1 there.
Mar
6
comment Exim4 configuration to use several external ip for mail sending
You are just digging yourself deeper into the hole if you try to evade their policy restrictions. See what you can do to simply send less email into Gmail, or get a proper agreement with them to have you exempted from the restriction.
Mar
6
comment Issue with Bash Script On FreeBSD
As an aside, collecting the output from find into a variable only to print the value of that variable is rather pointless. Just run the find command after the headers and have it print its output into the report. Somewhat similarly, grep 'interactive/pam' /var/log/auth.log avoids a completely useless cat and drops the (here) redundant -E flag.
Mar
6
comment Issue with Bash Script On FreeBSD
I would add head -n 2 /var/log/auth.log; tail -n 2 /var/log/auth.log to get an idea of what's in the log file at the time the script runs.
Mar
6
comment Issue with Bash Script On FreeBSD
The parentheses around (true) are useless.
Mar
6
comment Should I be adding aliases to /etc/profile instead of /etc/basrhc?
You should be using shell functions, not aliases. Aliases are less featureful, more brittle, and offer no advantages over shell functions.