Ok, so the title isn't really helpful, so I try to explain it:

I want to use Apache James as my primary MTA (please don't ask why - just take it as given). Major issue: james doesn't have a local sendmail command replacement. So I've looked up apache james doc wich is heavy outdated. Also, I'm running opensuse 15.0 wich uses full postfix instead of sendmail.

Unfortunately, I couldn't find any way to disable smtp-server but keep rest of postfix running so it will take mails from sendmail command and process its queue. All google gives is how to stop postfix completely, but I only want it to not run local smtp-server but otherwise process queue by dropped in mails like sendmail from apache or cron.

What postfix should to: forward all collected messages to local running james mta so it will handle delievery instead. Also, it should deliever local mail for users - like from cron - so I receive cron messages not as local mbox mail but as forwarded mail to james and can easy get them with IMAP.

I tried it with sendmail instead - but it can't even be easy installed on my chosen distro and most information found redirects to postfix or exim. So, not really helpful to try to give the big G a try as it only gets you not useful "systemctl stop postfix" - wich isn't what I want.

I also tried to look at this very long doc listing all conf options - but didn't found any flag to just disable smtpd or options to tell postfix to forward anything to localĀ  running smtp server (wich is provied by james). I tried to alter service file to remove the flag for tcp-listening - but somehow postfix doesn't care if the flag is present or not - it always runs smtpd - wich I just don'T want - but I want postfix to receive mails dropped in by sendmail or postdrop and just forward them to smtp://127.0.0.1:25/.

Neither sendmail configs nor postfix configs provide such options - but there's also no simple drop-in sendmail replacement offering this behaviour to use it with another MTA software.

Matt

Reply via email to