Page 1 of 1
3.0.7 Transport Settings domain editing error
Posted: 21 May 2015 12:49
by sefornes
Hi,
Strange thing. When I try to edit a domain using EFA-Configure (Mail Settings->Transport Settings), I might get an error saying 'Error.... "n" is not an option..."
I have a list of 116 domains. If I type '116', it lets me edit the last domain in the list. If I type '46' it complains that it isn't an option.
What gives? Hope some of you, or one of the devs, could give me some pointers here.
Regards,
Svein Erik Fornes
Re: 3.0.7 Transport Settings domain editing error
Posted: 21 May 2015 14:24
by DaN
At this point you use
/var/EFA/lib/EFA-Configure/func_mailsettings
which
cat /etc/postfix/transport
You should take a look at /etc/postfix/transport
Everything ok in this file?
domain.tld smtp:[IP]
domain2.tld smtp:[IP2]
.
.
.
Re: 3.0.7 Transport Settings domain editing error
Posted: 21 May 2015 16:59
by sefornes
Hi DaN, and thanks for your reply.
Yes, the /etc/postfix/transport looks fine. I can find all my domains, and can't see any errors in the file. All of the lines follow the standard you write.
Re: 3.0.7 Transport Settings domain editing error
Posted: 23 May 2015 20:25
by shawniverson
Strange thing. When I try to edit a domain using EFA-Configure (Mail Settings->Transport Settings), I might get an error saying 'Error.... "n" is not an option..."
I have a list of 116 domains. If I type '116', it lets me edit the last domain in the list. If I type '46' it complains that it isn't an option.
116 domains, impressive
I bet EFA-Configure is having trouble with so many domains.
Would you be willing to send me your /etc/postfix/transports file? I would like to use it to debug EFA-Configure.
If so, PM me.
Re: 3.0.7 Transport Settings domain editing error
Posted: 26 May 2015 22:07
by shawniverson
Patch fix for Transport editor in EFA-Configure:
Code: Select all
56a57
> [[ $(((y/2 + 1) % 25)) -eq 0 ]] && pause
68c69
< if [[ $choice > "0" && $choice < $((tLen/2+1)) ]]; then
---
> if [[ $choice -gt 0 && $choice -lt $((tLen/2+1)) ]]; then
Copy this into a file called func_mailsettings.patch and run the following:
Code: Select all
patch /var/EFA/lib/EFA-Configure/func_mailsettings func_mailsettings.patch
Re: 3.0.7 Transport Settings domain editing error
Posted: 27 May 2015 10:29
by sefornes
Worked like a charm. Thank you very much!
Regards,
Svein Erik