PDA

View Full Version : Virtual Users and domains with postfix, courier


toastmaster
18th January 2006, 21:19
Hello,

I would like to start out this post by saying thank you to all of the poeple who work on this site. I have found it to be very helpful and informative. You guys rock!:D I am a linux n00b so please bear with me if my questions are dumb ones.

I have recently completed the postfix courier mysql walkthrough and have a few questions:

1. When I delete a user out of the mySQL database, it doesn't remove the directories for that users mail under /home/vmail/domain.com. Is there any method in place to automatically remove directories/files when the user is deleted from the mySQL database.

2. Where are all of the logs concerning SMTP/POP3/IMAP connections so that I can troubleshoot connection issues.

falko
18th January 2006, 21:42
1. When I delete a user out of the mySQL database, it doesn't remove the directories for that users mail under /home/vmail/domain.com. Is there any method in place to automatically remove directories/files when the user is deleted from the mySQL database.
You could create a little shell or Perl script that is run by cron and does what you want. Of course, you must know a little bit about shell/Perl scripting.
However, if the directories don't hurt you, leave them there. You can clean up manually from time to time.

2. Where are all of the logs concerning SMTP/POP3/IMAP connections so that I can troubleshoot connection issues.
/var/log/mail.log, /var/log/mail.err, /var/log/mail.warn