outgoing emails

13 posts / 0 new
Last post
#1 Sun, 09/22/2013 - 13:43

outgoing emails

I have 7 domains.

I am using dovecot and sendmail.

I can set one domain to so I can use it with the same outgoing settings as the incoming settings.

Like mail.domain1.com incoming port 110

mail.domain1.com outgoing 25

But When I try and send out using the same setting on the other domains I get a 504 authentication error.

Any ideas?

I have put the domains into the domain masquerading of sendmail. as well as the relay and outgoing mail addresses...

Sun, 09/22/2013 - 14:53

I'm a little confused here... Normally Virtualmin does the management of email users and domains for you, you wouldn't need to put any domains in any "masquerading" configuration really. (Sorry, not familiar with Sendmail, I use Postfix myself).

So can you please re-iterate what the exact problem is? How did you create those domains and email users, where do you get which errors, what's getting logged in the mail.log (if it's named like that with Sendmail)?

Sun, 09/22/2013 - 19:44

Virtualmin has never set up any outgoing email services as far as I know of of. I create all my domains in virtualmin.

Create the users through the domain in virtualmin.

is there maybe a default setting that somehow I turned off that would prevent the domains from sending email out.??

I stand corrected. The outgoing email works with roundcube or squirrelmail. But does not work with outlook, thunderbird etc And it is outlook that I need to make work with the domains name for outgoing email.

Sun, 09/22/2013 - 21:01

Virtualmin certainly does set up your mailserver to do outgoing and incoming mail.

If outgoing doesn't work with email clients, you need to tell us precisely what error messages you get in the client and server logs.

Sun, 10/27/2013 - 21:12

I have having the most difficult time with Virtualmin email setup. I have several shared hosting and dedicated servers with cpanel and all of the outgoing emails work great. I have searched all of the documentation and forums and have found several different opinions on the postfix versus sendmail. I prefer send mail. but my virtualmin install has postfix and outgoing mail just does not work.

I do not want any incoming mail to this server as all mail is routed correctly by a separate exchange server. So how do i set up outgoing mail to work with all domains installed here. The outgoing mail is system mail generated by the website (joomla, Wordpress etc).

I am so frustrated that I may just dump Webmin/Virtualmin and pay for Cpanel. I like Virtualmin, but the documentation is horrible and is a rocket science project.



Mon, 10/28/2013 - 00:01


There shouldn't be anything you need to do for outgoing mail to work correctly... that should work by default.

Though you would need to configure the websites in question -- Joomla and WordPress -- to use the correct From addresses.

What problem are you having specifically with outgoing email?


Mon, 10/28/2013 - 03:07

@Bruno: like Eric said, the same applies to you as to eeeprom: if you don't tell us what problem exactly you're having, we cannot help you. :)

Thu, 10/31/2013 - 02:47 (Reply to #7)

First of all thanks for the response and willing to help. Here is the situation.

I have Postfix and Send mail set up. As I mentioned before, I do not want any emails to come to this server. I have a Office365 account that works great. All I want to do is have websites send email to users generated by the site. I have a couple Joomla sites and Whmcs sites. I even tried setting up Postfix as a null client. That did not work.

I am not biased about Postfix or Send mail one way or another. Although I read sendmail is better for Joomla, Wordpress and most websites. SO with that said, can any of you guide me step by step on this email setup?

Any links to any documentation would be great.



Thu, 10/31/2013 - 03:28

@Bruno: first you should decide whether you want Postfix or Sendmail, installing them both asks for trouble. :) Virtualmin automatically installs Postfix and configures it, didn't you use its installer script? It's highly recommended. Otherwise you still haven't told us what exactly is not working for you. As in, what did you try exactly, what happened, and what's in the logfiles. You don't go to the car garage and tell them "my car isn't working". :)

A step-by-step guide for installing and configuring Postfix is quite beyond the scope of this forum though. It's very complex and there's certainly guides for that out there, just ask Google. But as we said multiple times: Virtualmin normally sets up Postfix to run out of the box. If it doesn't, tell us what exactly doesn't work.

Thu, 10/31/2013 - 11:01

Here is what I have tried.

  1. Started Sendmail and stopped Postfix. Nothing worked.
  2. Do not know how to stop Sendmail, since i do not see a stop button in the Sendmail confoguration. Nor do I know how to check if sendmail is not running.
  3. Started Postfix after making changes to make it a null client, Still no luck.
  4. I originally installed Virtualmin and Webmin using the Install.sh process as identified in their documentation.
  5. Went here and tried to follow setups etc. Still no luck. http://www.postfix.org/documentation.html

I am not a Linux expert and so am trying to follow the documentation to get this to work. But unfortunately Virtualmin's UI is not so friendly and has too many links for too many things. Some of their documentation refers to email settings under Virtualmin - server administration, but no such links exist.

I can post the log file here if you can tell me where to get it.



Thu, 10/31/2013 - 11:23

@bruno: I'm sorry, but I can't help you this way. You keep saying that "nothing works", but do not tell us what EXACTLY does not work.

Since you also said you're not a Linux expert, I can only highly recommend that you use the Virtualmin installer script on a freshly installed, clean Linux (do not install any hosting packages, only SSH!), and let it configure Postfix and everything for you. It will work out of the box then. Do not try to install or configure Postfix (or especially Sendmail) manually! Trust me, you DO need to be a Linux expert for that!

Trying to fix your present system is, as far as I can see, and with the information you're providing, nearly impossible.

Thu, 10/31/2013 - 13:09
Thu, 10/31/2013 - 13:17

While I can't help you with that, I can suggest you put screen listings in [code][/code] tags, otherwise they become completely unreadable, as you can see.

Topic locked