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
> 

Reply via email to