I'm trying to configure Postfix on Ubuntu 18.04LTS. It's working, in the basic sense, but not doing everything I want. I've read some of the config help and examples, but I'm still not clear on what to do.
For each Ubuntu server I manage, I'd like these to work:
user1@ubuntu:~$ mail -s "Test" user2 <message-body
user1@ubuntu:~$ mail -s "Test" user2@ubuntu <message-body
user1@ubuntu:~$ mail -s "Test" user2@ubuntu.mydomainname <message-body
user1@ubuntu:~$ mail -s "Test" user3@myotherdomainname <message-body
I hope that's clear. Or mail -s "Test" jdoe mail -s "Test" jdoe@server678 mail -s "Test" jdoe@server678.domain1.org ...which would all deliver email locally to this server (server678) and the last one would be for mail which is destined for any other user NOT on this server but in domain2 (domain1 and domain2 are both internal workplace domains), and which will have to go through a relay host to get anywhere: mail -s "Test" santa394@domain2.org
I don't know if I've made myself clear. Ask questions and I'll try to clarify what I want.
Kevin
AFAIK, you want "dpkg-reconfigure --priority low postfix" and select a more appropriate configuration.
I don't have an Ubuntu system to test this with currently, sorry, so I'm going from memory.
-Adam
On 2018-06-28 11:46, Kevin McGregor wrote:
I'm trying to configure Postfix on Ubuntu 18.04LTS. It's working, in the basic sense, but not doing everything I want. I've read some of the config help and examples, but I'm still not clear on what to do.
For each Ubuntu server I manage, I'd like these to work:
user1@ubuntu:~$ mail -s "Test" user2 <message-body user1@ubuntu:~$ mail -s "Test" user2@ubuntu <message-body user1@ubuntu:~$ mail -s "Test" user2@ubuntu.mydomainname <message-body user1@ubuntu:~$ mail -s "Test" user3@myotherdomainname <message-body I hope that's clear. Or mail -s "Test" jdoe mail -s "Test" jdoe@server678 mail -s "Test" jdoe@server678.domain1.org ...which would all deliver email locally to this server (server678) and the last one would be for mail which is destined for any other user NOT on this server but in domain2 (domain1 and domain2 are both internal workplace domains), and which will have to go through a relay host to get anywhere: mail -s "Test" santa394@domain2.org
I don't know if I've made myself clear. Ask questions and I'll try to clarify what I want.
Kevin _______________________________________________ Roundtable mailing list Roundtable@muug.ca https://muug.ca/mailman/listinfo/roundtable
What is the value of the "mydestination" parameter in main.cf? That should define all of the different domain combinations that the daemon will accept mail for instead of relaying it.
-- Wyatt Zacharias
On Thu, Jun 28, 2018 at 1:55 PM, Adam Thompson athompso@athompso.net wrote:
AFAIK, you want "dpkg-reconfigure --priority low postfix" and select a more appropriate configuration.
I don't have an Ubuntu system to test this with currently, sorry, so I'm going from memory.
-Adam
On 2018-06-28 11:46, Kevin McGregor wrote:
I'm trying to configure Postfix on Ubuntu 18.04LTS. It's working, in the basic sense, but not doing everything I want. I've read some of the config help and examples, but I'm still not clear on what to do.
For each Ubuntu server I manage, I'd like these to work:
user1@ubuntu:~$ mail -s "Test" user2 <message-body
user1@ubuntu:~$ mail -s "Test" user2@ubuntu <message-body
user1@ubuntu:~$ mail -s "Test" user2@ubuntu.mydomainname <message-body
user1@ubuntu:~$ mail -s "Test" user3@myotherdomainname <message-body
I hope that's clear. Or mail -s "Test" jdoe mail -s "Test" jdoe@server678 mail -s "Test" jdoe@server678.domain1.org ...which would all deliver email locally to this server (server678) and the last one would be for mail which is destined for any other user NOT on this server but in domain2 (domain1 and domain2 are both internal workplace domains), and which will have to go through a relay host to get anywhere: mail -s "Test" santa394@domain2.org
I don't know if I've made myself clear. Ask questions and I'll try to clarify what I want.
Kevin
Roundtable mailing list Roundtable@muug.ca https://muug.ca/mailman/listinfo/roundtable
Roundtable mailing list Roundtable@muug.ca https://muug.ca/mailman/listinfo/roundtable
I had set it to mydestination = $myhostname, localhost.$mydomain, localhost
I changed it to mydestination = $myhostname, $myhostname.$mydomain, localhost.$mydomain, localhost
And that seems to work. Not sure what the heck I was doing before.
Thanks Adam & Wyatt.
On Thu, Jun 28, 2018 at 2:16 PM Wyatt Zacharias wyatt@magitech.ca wrote:
What is the value of the "mydestination" parameter in main.cf? That should define all of the different domain combinations that the daemon will accept mail for instead of relaying it.
-- Wyatt Zacharias
On Thu, Jun 28, 2018 at 1:55 PM, Adam Thompson athompso@athompso.net wrote:
AFAIK, you want "dpkg-reconfigure --priority low postfix" and select a more appropriate configuration.
I don't have an Ubuntu system to test this with currently, sorry, so I'm going from memory.
-Adam
On 2018-06-28 11:46, Kevin McGregor wrote:
I'm trying to configure Postfix on Ubuntu 18.04LTS. It's working, in the basic sense, but not doing everything I want. I've read some of the config help and examples, but I'm still not clear on what to do.
For each Ubuntu server I manage, I'd like these to work:
user1@ubuntu:~$ mail -s "Test" user2 <message-body
user1@ubuntu:~$ mail -s "Test" user2@ubuntu <message-body
user1@ubuntu:~$ mail -s "Test" user2@ubuntu.mydomainname <message-body
user1@ubuntu:~$ mail -s "Test" user3@myotherdomainname <message-body
I hope that's clear. Or mail -s "Test" jdoe mail -s "Test" jdoe@server678 mail -s "Test" jdoe@server678.domain1.org ...which would all deliver email locally to this server (server678) and the last one would be for mail which is destined for any other user NOT on this server but in domain2 (domain1 and domain2 are both internal workplace domains), and which will have to go through a relay host to get anywhere: mail -s "Test" santa394@domain2.org
I don't know if I've made myself clear. Ask questions and I'll try to clarify what I want.
Kevin
Roundtable mailing list Roundtable@muug.ca https://muug.ca/mailman/listinfo/roundtable
Roundtable mailing list Roundtable@muug.ca https://muug.ca/mailman/listinfo/roundtable