Hello, of course just after I sent the mail I discover that I can change which sendmail binary is used by mutt in the configuration file...and looked at the mailx manual and found that you can also change the path to sendmail there.
The old paths have some parameters. For example in mutt: /usr/sbin/sendmail -oem -oi # -oem: Mail back errors # -oi: Ignore dots in incoming messages If I change it to /usr/lib/postfix/sendmail, do I need to set any parameters? The manual says some options are silently ignored, so I could just change the path and check if any errors are logged... Regards, Daniel P. -----Ursprüngliche Nachricht----- Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> Im Auftrag von Poggenpohl, Daniel Gesendet: Sonntag, 28. Oktober 2018 22:47 An: postfix-users@postfix.org Betreff: AW: myorigin isn't appended to local senders Hello again, you say that the syslog entry with "sendmail" in it isn't the Postfix sendmail command, but from the sendmail package. I've looked in the package contents: /usr/sbin/sendmail is in the Solaris sendmail package. OK... I've just discovered that /usr/lib/postfix/sendmail can be linked to /usr/sbin/sendmail and THEN mutt sends mail, no "sendmail" syslog entry is created, and the syslog entries look much better: ######### /var/log/syslog excerpt Oct 28 21:21:24 anotherVM postfix/pickup[1892]: [ID 197553 mail.info] 559F725AF: uid=0 from=<root> Oct 28 21:21:24 anotherVM postfix/cleanup[2025]: [ID 197553 mail.info] 559F725AF: message-id=<20181028212124.GA2021@anotherVM> Oct 28 21:21:24 anotherVM postfix/qmgr[1893]: [ID 197553 mail.info] 559F725AF: from=<r...@anothervm.noreply.domain.com>, size=432, nrcpt=1 (queue active) Oct 28 21:21:24 anotherVM postfix/smtp[2027]: [ID 197553 mail.info] 559F725AF: to=<root@anotherVM>, relay=none, delay=0.04, delays=0.02/0.01/0.01/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=anotherVM type=MX: Host not found, try again) ######### Well, at least now the myorigin is appended... Ok, further configuration of transport (use local transport for anotherVM.noreply.domain.com) and mydestination to include anotherVM.noreply.domain.com AND anotherVM...and everything works. So, the only problem at the moment seems to be that mutt (or mail or mailx) internally uses the sendmail binary at /usr/sbin/sendmail, which I can't seem to change or haven't found how. Should the Solaris postfix package replace /usr/sbin/sendmail with a link to /usr/lib/postfix/sendmail at installation? Is this what's missing? Of course I can't just deinstall the package service/network/smtp/sendmail because the SMF fault management service package depends on that package. What is the official method for installing postfix on Solaris? It seems just "pkg install postfix" isn't enough as links are missing (see above)... As an aside: Solaris 11.3 also has two SMF services running, svc:/network/smtp:sendmail svc:/network/sendmail-client:default I've disabled both of them. No sendmail daemon is running anymore. The only sendmail is started when using mutt. I've also tried the following: I've recreated the VM and installed the Solaris postfix package (3.1) instead of the OpenCSW one. I will probably use that one in the future... Regards, Daniel P. -----Ursprüngliche Nachricht----- Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> Im Auftrag von Matus UHLAR - fantomas Gesendet: Sonntag, 28. Oktober 2018 19:36 An: postfix-users@postfix.org Betreff: Re: myorigin isn't appended to local senders >Poggenpohl, Daniel: >> first some environment notes: I have a Vagrant VM provided by VirtualBox >> running Solaris 11.3 and OpenCSW postfix 2.9.4. I hope that doesn't >> contribute to my problem, but who knows... >> >> It seems myorigin isn't appended to mail senders from local accounts, but >> rather "localhost" or "domain.com" without the "noreply" part. >> >> My logs: >> ###### /var/log/syslog excerpt >> ## I sent a mail using the following command: >> ## printf "Test" | mutt -s "Test mail" root >> Oct 28 10:11:32 anotherVM sendmail[3514]: [ID 801593 mail.info] >> w9S9BWpe003514: from=vagrant, size=77, class=0, nrcpts=1, >> msgid=<201810280911.w9s9bwpe003...@anothervm.domain.com>, >> relay=root@localhost On 28.10.18 13:37, Wietse Venema wrote: >That is not the POSTFIX sendmail command, therefore the warranty is void. ...that is the sendmail command from sendmail package. Apparently the one provided in solaris 11.3. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. (R)etry, (A)bort, (C)ancer