From: Gilles C. <gil...@ec...> - 2022-07-14 14:48:39
|
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" <gilles@mailsrv.office.local> 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 |