1

I use postfix to relay mail to 3rd party SMTP and never sent out email directly, and of course I never receive email.

So If I set myhostname / mydestination to sth like fake.mydomain.com, which mydomain.com is valid domain, but

  1. fake.mydomain.com record does not exist
  2. the IP of machine does not have PTR point back to fake.mydomain.com

Are there any drawbacks in the above settings?

Ryan
  • 5,831
  • 24
  • 72
  • 91

2 Answers2

1

The value of $mydestination will be important in the sense that it will decide what is to be delivered locally instead of sent to another server. I suppose in your case you will just want to make sure that it is set so that it will not interfere.

$myhostname should be set to the canonical FQDN for this server (which should match the PTR), this is used as the default value for such settings as what to use in the HELO / EHLO commands, etc.

Håkan Lindqvist
  • 35,011
  • 5
  • 69
  • 94
1

If you set myhostname then that will be the default value for myorigin.

I would just set myorigin = domain.tld and see if that works for you. As long as the mx records for domain.tld do not point to your host, everything should be ok.

natxo asenjo
  • 5,739
  • 2
  • 26
  • 27