I have 2 Ubuntu 16.04 virtual machines and I have installed Postfix on both of them.

How can I send a mail between them in localhost?


I assume, this is sort of test environment, without a real DNS/MX/etc settings? I think you should take a look at https://linux.die.net/man/5/transport. These postfix settings allows you to force the recipient/destination host for some emails. Just setup the destination host for your needs.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.