Re: [webmin-l] Usermin automatic reply not working

"Jamie Cameron" <[email protected]> Sat, 16 Jul 2022 14:30:45 -0700 (PDT)
Newsgroups gmane.comp.web.webmin.general
Message-ID <[email protected]>
Wait does .forward contain /usr/bin/procline or /usr/bin/procmail ?

On 16/Jul/2022 07:15 Gilles CELLI <[email protected]> wrote ..
> Ah thank you very much ! Will try it ASAP! 
> Also when automatic reply is enabled, sending a new email won't work...
> The new email is not distributed since .forward contains only the line:
> |/usr/bin/procline
> 
> Is this normal (not sending email...) or do I need to modify something for postfix
> ?
> 
> 
> 
> > Le 16 juil. 2022 à 07:14, Jamie Cameron <[email protected]> a écrit :
> > 
> > The best solution here is to configure Usermin with the correct domain name
> > for sending email. You can do this by adding the line :
> > 
> > server_name=mailsrv.myoffice.org
> > 
> > to /etc/usermin/mailbox/config
> > 
> > On 14/Jul/2022 08:30 Gilles Celli <[email protected]> wrote ..
> >> 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" <[email protected]>
> >> 
> >> 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" <[email protected]>
> >> 
> >> 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 <[email protected]> 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" <[email protected]>
> >>> 
> >>> instead of wrong (internal domain mailsrv.office.localname for internal network
> >> 192.168.x.0/24):
> >>> 
> >>> From: "gilles" <[email protected]>
> >>> 
> >>> 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 <[email protected]> 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" <[email protected]>
> >>>> 
> >>>> it should read:
> >>>> 
> >>>> From: "gilles" <[email protected]>
> >>>> or
> >>>> From: "gilles" <[email protected]>
> >>>> 
> >>>> 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 <[email protected]> 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 [email protected]
> >>>>> To remove yourself from this list, go to
> >>>>> http://lists.sourceforge.net/lists/listinfo/webadmin-list
> >>>> 
> >>>> 
> >>>> 
> >>>> -
> >>>> Forwarded by the Webmin mailing list at [email protected]
> >>>> To remove yourself from this list, go to
> >>>> http://lists.sourceforge.net/lists/listinfo/webadmin-list
> >>> 
> >>> 
> >>> 
> >>> -
> >>> Forwarded by the Webmin mailing list at [email protected]
> >>> To remove yourself from this list, go to
> >>> http://lists.sourceforge.net/lists/listinfo/webadmin-list
> >> 
> >> 
> >> 
> >> -
> >> Forwarded by the Webmin mailing list at [email protected]
> >> To remove yourself from this list, go to
> >> http://lists.sourceforge.net/lists/listinfo/webadmin-list
> > 
> > 
> > -
> > Forwarded by the Webmin mailing list at [email protected]
> > To remove yourself from this list, go to
> > http://lists.sourceforge.net/lists/listinfo/webadmin-list
> 
> 
> -
> Forwarded by the Webmin mailing list at [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list

-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list