Hi All,
I have installed Virtualmin with Sendmail and Dovecot (originally I installed Postfix and dovecot) but then php mail() scripts were not working, so Uninstalled postfix and reactivated sendmail…
Sendmail is sending my php emails no problem, I can login to USERMIN and send email no problem, however I cannot RECEIVE any emails inbound.
Need some help please, frying my brain for 3 days over this.
When you installed Virtualmin, did you by chance use the install.sh script?
If not, and you’re able to start over – that might save you a lot of hassle. The install.sh script configures everything for you, so you shouldn’t have to do much tweaking to get email working.
If you’re interested in sticking with sendmail – I’m unfortunately not really familiar with using it, and Virtualmin comes ready to use Postfix by default… but the key would be to review the mail logs for any errors, as well as to make sure it’s listening on port 25, and that your ISP isn’t blocking port 25 as some do.
Included in that are various configuration changes that need to be made to Postfix, Dovecot, and Procmail – all part of the email stack, which may be related to the issues you’re seeing now.
If you can, I’d certainly suggest using the automated installation with the install.sh script.
Well, the problem is that your email stack isn’t configured correctly. Postfix hasn’t been configured to handle the email accounts being added to your system.
If you didn’t use the install.sh to perform your installation, then you’ll need to work through the various configuration changes in the manual install guide I linked to above in order to get your system working properly.
Hi Andrey,
I tried your suggestion, no dice. It actually broke postfix sorta.
======================
Postfix
Postfix should be installed, and configured for virtual hosting. The best way to do this for the vast majority of deployments is to use a simple map file.
Edit main.cf and add the following line:
virtual_alias_maps = hash:/etc/postfix/virtual
Save it, and restart Postfix.
I am all out of options. IT has to be a VERY SIMPLE fix why email
For SENDING EMAIL FROM the server, using the virtualmin / usermin script, I must change the FROM field FROM kolmin@SERVER1.kolmin.com TO kolmin@kolmin.com and it works.
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 kolmin@kolmin.com: Relay access denied (state 14).
The “relay access denied” errors suggest that your server doesn’t think it’s setup to receive email for that domain.
That may suggest there’s a problem with the /etc/postfix/virtual file – that file should have entries in it for each domain, and each email account that’s added.
This is all normally setup for you on a fresh distribution install when using the install.sh installer to install Virtualmin, so the key here is to figure out what’s different from a default setup.
You mentioned in another thread that the virtual file is blank – if you look in System Settings -> Virtualmin Configuration, what is “Mail server to configure” set to? That should be set to “Postfix”.
Since you started with Sendmail, and later moved to Postfix – and only recently configured it to use the virtual file, it’s possible that the appropriate entries in the virtual file weren’t correctly created.
What happens if you create a new Virtual Server… perhaps just a test one… now that you have Postfix installed, do the entries in the “virtual” file get created?
Wow, those aren’t subtle changes… that will certainly prevent it from working at all
The Postfix config is different across distros… what I’d recommend doing is using the config that you shared in your earlier comment, which is a good default.
You’ll then need to review the manual installation directions that I shared above, and go through all the configuration changes mentioned in it (including those for Postfix, procmail, and dovecot). It looks like you’re still missing some of the changes described in it. In addition to all the config changes described in there, you’ll also need to make sure you perform the procmail-wrapper installation that it describes.
Without all those steps, things won’t work properly.
A manual installation like you’re trying to perform is much more difficult, and you’ll really need review the entire manual install guide or things won’t work properly
I STILL must change my FROM email address in webmin/virtual min from USERNAME@HOSTNAME to USERNAME@DOMAIN NAME Do you know how to correct that by default to send properly in webmin/virtual min?
Also, I tried setting up a forwarder to forward USERNAME@DOMAIN to MYGMAIL@GMAIL.COM, but no dice
The instructions in the “procmail” section include several things you’ll need to setup on your server, including a change to the Postfix main.cf file. It doesn’t look like you’re performed those steps yet
That all needs to be completed before things will work.
Additionally, until the “virtual” file has an entry for all your domains, things won’t work properly.
I made some suggestions above as to how to begin troubleshooting the virtual file issue.