Send only Postfix configuration

4 posts / 0 new
Last post
#1 Wed, 09/21/2016 - 09:51
marcmarc

Send only Postfix configuration

Hi, I've got an issue with sending email from my server.
I've read many many posts about the same "mail transport unavailable" issue but they are all related with things not even actives on my servers.

my situation is :

  • I have a server with Webmin/Virtualmin on a CentOs7 fresh install
  • I want to use this server for hosting my websites : works fine
  • I have 2 virtual servers on this server : domain1.com and domain2.com
  • I don't run BIND since my DNS zones are on another server (OVH, my hosting company) : works fine
  • I don't want to receive emails on this server for domain1.com and domain2.com
  • I don't use virus filtering and spam filtering

my problem is :

I need to send emails from this server to the outside world
no problem when I try to send to any email address except for domain1.com wich is the hostname of the server

in this case, all emails stay in the queue with "mail transport unavailable" error.

any idea? Thanks

Wed, 09/21/2016 - 11:13
just_me

i think, you shouldn't use domain 1 for which you have a virtual server also as hostname for virtualmin. Try to use something else, like a subdomain or whatever, this might do the trick.

If you have domain1 as hostname for your virtualmin server AND use it too for virtual server, settings might be mixed up.

Thu, 09/22/2016 - 04:12
marcmarc

thanks, you're right, it should do the trick except that I really want to use domain1.com as hostname. I'm sure there is a simple solution but I've always found postfix very unintuitive and I can't find the way…

so, if someone has a way to do it I would be glad to learn it!

Thu, 09/22/2016 - 07:48
marcmarc

well, it seems to work fine with an empty mydestination in main.cf
mydestination =

(or in webmin module Webmin|Servers/Postfix Mail Server/General Options > What domains to receive mail for : empty)

Topic locked