On Mar 18, 2011, at 2:50 PM, lance raymond <lance.raym...@gmail.com> wrote:
> What a way to welcome myself to the group! But with that, the mailserver > crashed (HD fail) and the backups from last night were in tact. Problem is > the old os was a RH9 (I know) system, built from source, etc. The new box is > staged (CentOS5), postfix installed via YUM and the config was then compared. > They were using virtual domains/users, so that part of the config was moved > and looks like this; > > disable_mime_output_conversion = yes > strict_mime_encoding_domain = yes > maildrop_destination_recipient_limit = 1 > vacation_destination_recipient_limit = 1 > virtual_mailbox_domains = cdb:/etc/postfix/virtdomains > virtual_mailbox_base = /mail > virtual_mailbox_maps = cdb:/etc/postfix/virtmailboxes > virtual_uid_maps = static:508 > virtual_gid_maps = static:508 > virtual_minimal_uid = 100 > virtual_alias_maps = cdb:/etc/postfix/virtaliases > virtual_transport = maildrop > transport_maps = cdb:/etc/postfix/virttrans > smtpd_recipient_restrictions = permit_mynetworks check_client_access > cdb:/etc/postfix/popb4smtp check_relay_domains > #smtpd_client_restrictions = permit_mynetworks, check_client_access > cdb:/etc/postfix/popb4smtp, reject_rbl_client replays.ordb.org, > reject_rbl_client bl.spamcop.net > smtpd_client_restrictions = permit_mynetworks, check_client_access > cdb:/etc/postfix/popb4smtp > > Now in the /etc/postfix folder, those virtdomain/virtusers files were put > there, the mynetworks IPs, etc. are all set. A start on postfix and no > errors. They use some PHP webmail front end, debugging up and a test login > (forced fail since I don't have a valid user/pass) I saw this in the apache > log; > grep: /etc/dtpasswd: No such file or directory > > [Fri Mar 18 13:01:36 2011] [error] [client 1.1.1.1] PHP Warning: fsockopen() > [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to > localhost:143 (Connection refused) in > /var/www/html/webmail.simpedia.com/functions/imap_general.php on line 172, > referer: http://webmail.siahou.net/src/login.php > grep: /etc/dtpasswd: No such file or directory > > I don't have that /etc/dpasswd file anywhere, but seeing 143 (IMAP) refusing, > I installed dovecot via YUM since I know he's an IMAP server and rehitting > the page, login, still got the dpasswd file, but the 143 refused is now gone. > On extracting the backups, I do see a userdb file which I can cat and looks > like my user info; example; > supp...@domain.com > systempw=fwsNTHmHTI1t.|uid=509|mail=/mail/domain.com/support|home=/home/maildrop|gid=509 > > Now I need to have the following; > 1. The server back where the users can login and get their mail. > 2. Know how to add / delete users (not sure if the userdb is a backup, etc. > since the config says to use the cdb file) > 3. Testing. Comparing to mysql, can I connect locally via command line, test > login, etc.? > > Once I have 2 working, I can use a 3rd party client, but as of now, I don't > even know if new mail is being recieved, etc. as paths like /mail/mail.domain > doesn't exist. > > Since this is my 1st post, I may be leaving out something, feel free to let > me know what (how to get it) and I will provide. > > Thanks to all for reading and bearing with a new user. Before you get too far into config, may I suggest that you upgrade to Postfix 2.8? The version from the CentOS repos is woefully outdated. Postfix 2.8 for CentOS 5 instructions here: http://stevejenkins.com/blog/2011/01/building-postfix-2-8-on-rhel5-centos-5-from-source/ SteveJ