Filed Under (Plesk) by jc on 18-12-2009
Many times I see customers accidentally changing permissions recursively for a whole domain, breaking Plesk functionality including log rotation. Here is how to fix it:
/usr/local/psa/admin/sbin/vhostmng --install-vhost --vhost-name=domain.tld --user-name=domain_user --set-content-permissions
Substitute domain.tld with the domain in question and domain_user with the domain user for that domain. If you accidentally change permissions for several domains you can also script that command extracting some of that information from the psa database.
Cheers.
Filed Under (Mail) by jc on 03-08-2009
Below is a great tutorial on how to build a Mail Server on Fedora with MailScanner, Squirrelmail, Mailwatch, spamassassin & ClamAV.
http://www.scudconsulting.com/docs/mailserver.html
Thank you
Filed Under (Mail, Red Hat) by jc on 27-07-2009
I came across this problem a few time and I keep forgetting the solution. Sometimes, even if you set in:
/etc/postfix/main.cf:
home_mailbox = Maildir/
postfix will still deliver to /var/spool/mail/user.
There are 2 ways to solve this problem:
1. you can disable procmail by removing the following line from /etc/postfix/main.cf:
mailbox_command = /usr/bin/procmail
2. If you need procmail, add the following lines to /etc/procmailrc:
MAILDIR=$HOME/Maildir
DEFAULT=${MAILDIR}/
That’s it!
–JC
Just got dropbox installed on my Ubuntu workstation. Great way to share files with my Mac and other computers. Now I cant live without it. To install on Jaunty just edit /etc/apt/sources.list and add:
deb http://linux.getdropbox.com/ubuntu jaunty main
deb-src http://linux.getdropbox.com/ubuntu jaunty main
Then:
$ sudo apt-get update
$ sudo apt-get install nautilus-dropbox
That’s it!!!
–JC
Filed Under (Mail) by jc on 29-04-2009
BCC maps are handled in postfix by the following tags:
always_bcc = address
Deliver a copy of all mail to the specified address. In Postfix versions before 2.1, this feature is implemented by smtpd(8), qmqpd(8), or pickup(8).
sender_bcc_maps = type:table
Search the specified “type:table” lookup table with the envelope sender address for an automatic BCC address. This feature is available in Postfix 2.1 and later.
recipient_bcc_maps = type:table
Search the specified “type:table” lookup table with the envelope recipient address for an automatic BCC address. This feature is available in Postfix 2.1 and later.
So this is how I did it:
Added the following lines to /etc/postfix/main.cf:
sender_bcc_maps = hash:/etc/postfix/bcc_maps
recipient_bcc_maps = hash:/etc/postfix/bcc_maps
Edited the file /etc/postfix/bcc_maps :
monitorme@linuxzone.org admin@linuxzone.org
This way for all messages sent and received by monitorme@linuxzone.org, a copy will be sent to admin@linuxzone.org
Ran postmap /etc/postfix/bcc_maps
restarted postfix.