| Linode Forum https://forum.linode.com/ |
|
| Postfix and Postfix Admin's MySQL databases https://forum.linode.com/viewtopic.php?f=11&t=8847 |
Page 1 of 1 |
| Author: | redhat19 [ Wed May 16, 2012 3:29 am ] |
| Post subject: | Postfix and Postfix Admin's MySQL databases |
Hi all, I followed the instructions here: http://library.linode.com/email/postfix ... l-centos-5 to configure Postfix to work with MySQL and Dovecot before discovering PostfixAdmin. Since I had created MySQL database for managing virtual domains and users already.. My question now is: is there anyway to make all these work with Postfix admin/Postfix Admin's database for the creationg and use of virtual users/mailboxes? Thanks. |
|
| Author: | derfy [ Wed May 16, 2012 8:05 am ] |
| Post subject: | |
Yes, there is. It's been a long time since I set it up, though so the details are a bit murky. I seem to recall postfixadmin providing sample scripts in the download for adding/deleting users/mailboxes, etc. Sorry, I don't mean to be a smart-ass; I just remember being in your shoes. I followed that guide, then skipped the guide's mysql setup and followed postfixadmin's. |
|
| Author: | redhat19 [ Wed May 16, 2012 9:53 am ] |
| Post subject: | |
Hi @derfy Your post was helpful, really. So, if I decided to use Postfixadmin for administering virtual users/domains how do I tell postfix/dovecot to use Postfixadmin's database instead? (...bearing in mind I have carried out all the settings on http://library.linode.com/email/postfix ... l-centos-5 ) How did you do it? Can you remember? (since you too had carried out all the other steps in that guide to configure Postfix to work with Dovecot and MySQL on CentOS). Again, many thanks. I really appreciate any help I can get here. |
|
| Author: | derfy [ Wed May 16, 2012 11:19 am ] |
| Post subject: | |
Here's a start: http://pastebin.com/tQVeYi6q If I remember anything noteworthy, I'll add it. Updated with dovecot values; I think you should have most of the required ones. |
|
| Author: | redhat19 [ Thu May 17, 2012 11:46 pm ] |
| Post subject: | |
Hi @defry Thanks for you help. I think I have been able to pull it off. I followed your lead in giving postfix UID of 640, so I did: I did [root@myserver1 ~]# usermod -u 640 postfix ..and it resulted in the following in the /var/log/maillog files: Code: May 17 20:22:52 myserver1 postfix/postfix-script[2139]: warning: not owned by postfix: /var/lib/postfix/. So, I had to do: Code: [root@ myserver1 /]# chown -R postfix /var/lib/postfix ..and everything seemed to work fine. I was able to send mails and administer email addresses via PostfixAdmin. Why did you assign a high UID number to postfix? What are the consequences of making postfix the owner of the files I have made postfix to own? Are there any? Everything seems to work fine, but I would appreciate it if you took a look at my log files just to make sure everything is working fine. Here’s the section of the /var/log/mailog Code: May 17 22:29:22 myserver1 postfix/postfix-script[4387]: stopping the Postfix mail system Thanks a whole lot. |
|
| Author: | derfy [ Fri May 18, 2012 1:27 am ] |
| Post subject: | |
I was unclear, my bad. I meant those .cf files were owned by root, and chown'd to postfix, with a chmod of 640, hence -rw-r-----. I apologize for any confusion. Looks good so far. Welcome to the 'joy' of admining your own mail server! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|