I have already adapted my accept parameter to include the domain as hostname as 
you can see below:


accept from local for any relay hostname realdomain.tld

but unfortunately it still uses the internal domain name in the from.

Regards
ML




On Monday, February 22, 2016 11:10 AM, Jiri B <ji...@devio.us> wrote:
On Mon, Feb 22, 2016 at 09:40:00AM +0000, ML mail wrote:
> Hello,
> 
> How do one configure the domain which OpenSMTPD uses by default to speak with 
> other mail servers? The problem is that my default it takes the internal 
> domain name of my OpenBSD 5.8 server and therefore other mail servers reject 
> it with the error:
> 
> Sender address rejected: Domain not found
> 
> 
> So in fact it sends mails with u...@internal.lan and I would like it to send 
> mails with u...@realdomain.tld, how can I achieve that? I did not find the 
> config parameter in smtpd.conf for that purpose.

See 'hostname' in relay part in smtpd.conf(5).


j.

Reply via email to