I want to setup a mail server. Problem is their domain is part of a national company and all the branches use the same domain.
The setup we are using for the server consist of SOGo, Dovecot, Sendmail, Fetchmail and then we use LDAP to authenticate against. I need a way to send all outgoing mail to smart host and still be able to use fetch mail to pull mail from ISP and deliver to the users
What config must i change / add in sendmail or fetchmail to forward the domains mail out? Or are there other ways to do it?