Well, I'll give mini-smtp a try now - let's see if this fits my purposes
better.
About the brain-dead system: isn't it supposed that the config-tool,
wich, correct me if I'm wrong, belongs to postfix itself is run at its
start-up? Also, if config.postfix generates master.cf from sysconfig -
shouldn't there be an option in sysconfig the tell config.postfix the
not enable smtpd? Looks like error on postfix's side to me, not
distribution fault.
About relayhost: if setting relayhost to [127.0.0.1]:25 should do the
trick, but doesn't, wich other configs could prevent processing
mail-queue, connect to smtp-server and drop it there? Couldn't find any
and I'm not good enough with anything other than Java to dig through the
source my self to find the issue.
All comes back down to: couldn't find any config options provide desired
options or could be reason for what's happening. So, my guess, postfix
just doesn't fit my needs.
Thanks anyways,
Matt
Am 24.01.2019 um 22:24 schrieb Noel Jones:
On 1/24/2019 3:12 PM, Matt Wong wrote:
Hi Noel Jones,
sadly, this didn't the trick. I can change /etc/postfix/master.cf
and call postfix reload - then smtpd shuts down and james is able to
start its smtp server. Strangely, when using systemctl restart
postfix master.cf is rebuild from /etc/sysconfig/postfix - smtpd is
re-enabled and re-started - or at least tried, when james is running
it fails as tcp/25 is in use. So, I need to add some option in
/etc/sysconfig/postfix so when master.cf is rebuild smtpd is not
re-enabled by default. That's my first issue.
brain-dead systems that reconfigure your settings are not supported
here. Check with your system vendor.
Second issue: even I set relayhost to [127.0.0.1]:25 when using
mail() in php in apache, postfix doesn't even try to connect to
james. It's in the logs that postfix got the mail from apache, but
it seems nothing happens after this. Is there something else I have
to set?
Nothing else is necessary. Assuming other settings haven't been set
to brain-dead values.
Good luck.
You should really look into mini-sendmail or some other command-line
SMTP tool.
-- Noel Jones
Thanks in advance,
Matt Wong
Am 23.01.2019 um 20:59 schrieb Noel Jones:
On 1/23/2019 1:47 PM, Matt Wong wrote:
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.
To disable smtpd, comment out the smtpd service in master.cf. To
have postfix forward all mail to a specific SMTP server, set the
relayhost parameter.
If you're just looking for a replacement for the sendmail command
that can forward to a local SMTP server, the mini_sendmail program
is probably just what you need.
https://acme.com/software/mini_sendmail/
Packages are available for most systems.
-- Noel Jones