Im just setting up send only mail services on a dsl connected box with no offical DNS. All i need is for php cgis to be able to send mail, fullstop. ie a null client scenario.
Having worked my way through :
http://www.postfix.org/faq.html#null_client
http://www.postfix.org/STANDARD_CONF...ml#null_client
it seems that my situation is a combination of "null client" and "Postfix on hosts without a real hostname"
the only config ive got anywhere near working is this:
myhostname = testserver.local.net
mydomain = local.net
myorigin = myisp.net
relayhost = [mail.myisp.net]
the problem is that the above smtp relay, like many, baulks at unresolvable names like testserver.local.net. so then i tried the fantasy /canonical approach
myhostname = server.domain.invalid
mydomain = domain.invalid
myorigin = $mydomain
relayhost = $mydomain
canonical_maps = hash:/etc/postfix/canonical
inet_interfaces = 127.0.0.1
local_transport = error:local delivery is disabled
/etc/postfix/canonical:
root
myemail@myisp.net
apache
myemail@myisp.net
www
myemail@myisp.net
This doesnt work at all. too many changes to know which is screwing it up. The probelm with the null client example at the postfix site is that it assumes another mail server on the site somewhere. Leaving relayhost blank is supposed to send mail direct, but that doesnt work either.
This situation must apply to most mandrake workstation users. Apreciate a working main.cf script in toto if you have it for this scenario.
P