![]() |
Step by step email setup for domain & clients
So what do I have to do to setup email for a domain, let's say website.com, add emails for that domain so that I can:
- send emails via smtp - receive emails ? I have DNS setup I added the email domain website.com I added an email emailuser@website.com with quota 0 (i guess that means unlimited?) with receiving, imap and pop enabled. So far I could check my email (I moved them from another server and set the proper permissions) But I couldn't receive nor send emails. I managed to make sending of emails work by adding in the postfix whitelist 3 records: website.com type:sender unknown type:client com type:recipient But that meant I could only send to *@*.com So how do I get rid of this? I only want it to check against the sender, not the client and the recipient also. And as for the incoming emails not... coming: Code:
This is the mail system at host website.com.Code:
Jan 17 02:49:34 wip postfix/smtpd[25768]: connect from mail-ew0-f209.google.com[209.85.219.209] |
I've just done a migration to using Postfix etc myself using the excellent guide on this site and would reccomend either running through that or at least using it as a reference for checking how you have configured your site.
The maillog you post shows some issues, such as duplicate entries for host-domain and virtual domain definitions, that you should try and address. Not being an expert on Linux my only other advice,, based on issues I had, were to disable SELinux security and the firewall until you have everything working and then make small changes to secure the server. Good luck Mark |
Really guys it isn't working. I'm losing my mind over here by the hour. I've renamed myhostname so that there aren't any duplicates in virtual-domains.
But of course that wasn't the problem, it couldn't be that simple. Please, for the love of god 'cause I haven't done this before, tell me what are the steps to follow in ISPConfig make sure I at least can receive emails. I even added right now my domain in the whitelist with type recipient and it still bounces the email on the count that the user i'm trying to send to (on my domain) doesn't exist. But the hell it does exist. I'll post the mysql query log with what queries postfix does when it receives an email I send from gmail and which queries return something or not based on what's in the table. Quote:
|
Hm... I found the reason for:
Quote:
Quote:
So here lies the problem. Which module handles this? And what's wrong with it's configuration? Note that before this I told ISPConfig to remake it's configuration files. LE: The problem must be in SASL and in postfix. I'm running CentOS 5.4 i think (either this or 5.3) and the first thing I found is that the smtpd.conf file was not configured. SASL's smtpd.conf file in centos is in /usr/lib/sasl2/smtpd.conf and ISPConfig tries to write /etc/postfix/sasl/smptd.conf Anyway I configured them both properly.. I think: Quote:
Quote:
Quote:
Quote:
|
Download the latest ispconfig (3.0.1.6), unpavk it and then run the update.php script again and select to reconfigure services. It is not nescessary to change any file manually on centos 5.4 32bit or 64Bit, and I'am doing this installs daily, they are just working out of the box. Make sure that you followed the perfect server guide to the letter before you installed ispconfig.
|
Yes, I followed the perfect server guide and yes I already ran the update.php this morning to try again and no, it didn't fix it.
I managed to isolate the problem to postfix not using sasl properly. When connecting to the smtp port it's not using authentication at all. Code:
$ telnet website.com 25 |
Then you might have compiled postfix without sasl. But sasl is not even needed to receive emails, it is just needed when you send emails to non local recipients. So I dont think that thats the problem, most likely your postfix does not even support virtual users at all or has no mysql compiled in. You should recompile and reinstall tzhe new postfix as described in the perfect server guide:
http://www.howtoforge.com/perfect-se...ispconfig-3-p4 |
I don't know about sasl support but you can see above that mysql works but virtual users don't and that's why it keeps bouncing emails. Also, yes, i did compile it like that. How can I check what modules postfix is compiled with?
|
Please install squirrelmail on the server if you did it not already. Then login to a local email account in squirrelmail and send a email to this exact same email account. Then post all lines that got added in the mail log file.
Also run these commands and post the output: postconf -d | grep sasl and postconf -n | grep sasl |
Here's from maillog after trying to send from squirrelmail:
Quote:
Quote:
Quote:
|
| All times are GMT +2. The time now is 09:49. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.