From: Gilles C. <gil...@ec...> - 2022-07-14 15:30:14
|
Update 3: OK it seems to work but I have to login to Usermin at https://mailsrv.myoffice.org:20000 instead (of preferred internal/local https://mailsrv.office.local:20000) then the automatic reply works and the file $HOME/autoreply.0.txt contains the correct "From:" with email address: From: "gilles" <gi...@ma...> But login in to the internal (192.168.x.0/24 zone) with https://mailsrv.office.local:20000, the file $HOME/autoreply.0.txt contains the wrong "From:" address (which bounces then back and email is never delivered) From: "gilles" <gilles@mailsrv.office.local> Also trying to set Webmin > Usermin Configuration > Ports and Addresses > Web server hostname: "mailsrv.myoffice.org" (instead of "Work out from browser") gives an error: "Failed to change address : An error occurring starting Usermin with the new address and port settings" So it would be nice to set the Web Server hostname in /etc/usermin/miniserv.conf ... Is this possible ? > On 14 Jul 2022, at 16:48, Gilles Celli <gil...@ec...> wrote: > > Update 2: Automatic Reply is still not working after setting Webmin > Usermin Configuration > Ports and Addresses > Web server hostname: "mailsrv.myoffice.org" > and in /etc/usermin/miniserv.conf > host=mailsrv.myoffice.org > > Even logout and restarting Webmin & Usermin it will still write the correct hostname but wrong domainname into file "$HOME/autoreply.0.txt". > > Since our Email-Server "mailsrv" has 2 separate Ethernet cards: > - one NIC for internal network: 192.168.x.0/24 (office.local) and > - one NIC for public network (myoffice.org) > > the autoreply.0.txt has always the wrong internal network DNS name -> (office.local intead of myoffice.org) > > So $HOME/autoreply.0.txt should read with TLD (here: mailsrv.myoffice.org) > > From: "gilles" <gi...@ma...> > > instead of wrong (internal domain mailsrv.office.localname for internal network 192.168.x.0/24): > > From: "gilles" <gilles@mailsrv.office.local> > > So the script which generates the "$HOME/autoreply.0.txt" file, extracts and writes the wrong domainname (office.local...) ?! > > > >> On 14 Jul 2022, at 14:39, Gilles Celli <gil...@ec...> wrote: >> >> Well I think I found something...I added procmail to /etc/postfix/main.cf as "mailbox_command" >> mailbox_command = /usr/bin/procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir >> >> After that it worked: the Auto Reply in Usermin creates the file "autoreply.0.txt" in $HOME, >> but inside this file the domainname of the host is not the TLD domain name, but instead "office.local" >> >> From: "gilles" <gilles@mailsrv.office.local> >> >> it should read: >> >> From: "gilles" <gi...@ma...> >> or >> From: "gilles" <gi...@my...> >> >> With <mailsrv.office.local> it bounces back and gets queued... >> >> Can someone give me a clue which script to edit that generates the hostname with TLD for file "autoreply.0.txt" ? >> I've edited the variable: $host (line 105) in /etc/usermin/forward/autoreply.pl but that doesn't seem to work... >> >> Any clues ? >> >> thanks >> >> gilles >> >> >>> On 14 Jul 2022, at 10:56, Gilles Celli <gil...@ec...> wrote: >>> >>> Automatic reply for Usermin v1.840 doesn't seem to work on our OpenSUSE Leap 15.3 Email-Server... >>> >>> Quick question: is "procmail" required along with postfix to have automatic replies ? >>> >>> I've tried / checked a few things: >>> When I create a new "Automatic Reply" it creates the ".forward" file in my $HOME directoy with content: >>> |/usr/bin/procmail >>> >>> If the .forward file is present => no reply, and no email is received. >>> >>> Also I checked in "Webmin" > Usermin Configuration > "Usermin module configuration" > "Configurable options for Mail Forwarding and Replies" >>> and "Allowed Forwarding types" everything is selected (Autoreply etc.) and "Mail system installed" is set to "Sendmail". >>> >>> I suspect something is missing, but I don't want to mess up my Dovecot / Postfix (with LMTP) setup, so I'm not sure if "procmail" required for Autoreply ? >>> >>> cheers >>> >>> >>> >>> >>> >>> - >>> Forwarded by the Webmin mailing list at web...@li... >>> To remove yourself from this list, go to >>> http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> >> >> - >> Forwarded by the Webmin mailing list at web...@li... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |