BCC every email going through OpenSMTPd to a specific address

2022-08-23 Thread Simon Hoffmann
Hey fellow mailserver admins! I'm currently using OpenSMTPd as my internal mailserver for my company. As per regulations, I need to archive emails sent and received for specific amounts of time, depending on the type of mail. The mail archive software has a mode to pop/imap mails from a "collect

Re: Limit Mail Submission to inet4

2021-11-18 Thread Simon Hoffmann
> On Thu, Nov 18, 2021 at 10:55:00AM +0100, Simon Hoffmann wrote: > > > > > > > > > >GMail still wont accept my IPv6 submitted mails. > > > > > > Are you using ipv6 connectivity over tunnel from tunnelbroker.net? > > > >

Re: Limit Mail Submission to inet4

2021-11-18 Thread Simon Hoffmann
> > > >GMail still wont accept my IPv6 submitted mails. > > Hi, > > Are you using ipv6 connectivity over tunnel from tunnelbroker.net? Nope. My relays have "real" IPv6 /64 networks assigned to their interfaces natively. However, I'd still like to only use IPv4 when sending messages. Suggesti

Limit Mail Submission to inet4

2021-11-18 Thread Simon Hoffmann
Hey, the earlier versions of opensmtpd (with the old config file syntax: accept from...) had the option to specify limit mta inet4 domain.com (from memory), or limit mta inet4 in general, to limit everything to IPv4. With the newer versions (I'm running 6.8.0) this seems no longer possible? Wh

Re: OpenSMTPd: Ignoring /etc/hosts file?

2021-09-22 Thread Simon Hoffmann
> On Mon, Sep 13, 2021 at 12:28:04PM +0200, Simon Hoffmann wrote: > > > do you have "lookup file bind" record in your /etc/resolv.conf file? > > > > This option is not available in the current debian version. > > > FWIW, the equivalent setting on glib

Re: OpenSMTPd: Ignoring /etc/hosts file?

2021-09-13 Thread Simon Hoffmann
> do you have "lookup file bind" record in your /etc/resolv.conf file? This option is not available in the current debian version. And I have to admit I have no clue what did the dns resolving. NetworkManager was disabled, systemd-resolved was disabled, ... Changes to the /etc/resolv.conf file w

Resolved: OpenSMTPd: Ignoring /etc/hosts file?

2021-09-13 Thread Simon Hoffmann
I managed to resolve this issue with some strange workaround. I must confess, I dont exactly know which service was handling DNS before, as NetworkManager and systemd-resolved were both disabled. /etc/resolv.conf was overwritten by each DHCP request. So I did the following. I configured systemd

Re: OpenSMTPd: Ignoring /etc/hosts file?

2021-09-13 Thread Simon Hoffmann
2.168.158.1 (uhura.hoffmann.computer) for 15s Sep 13 10:04:56 mx01 smtpd[25157]: smtp-out: No valid route for [connector:[]->[relay:192.168.158.1,port=25,smtp+tls,mx,heloname=mx01.klm.hoffbox.net],0x0] Thanks, Simon > > Best, > Aisha > > On 9/12/21 5:28 PM, Simon Hoff

OpenSMTPd: Ignoring /etc/hosts file?

2021-09-12 Thread Simon Hoffmann
Hey yall, in my smtpd.conf file I have "relay smtps://host.domain.tld" host.domain.tld does resolve to a public IP, and this needs to be a public IP on public DNS. However, OpenSMTPd needs to relay to the local IP address of the smarthost. Since I have no DNS server running on that network, and