3.0.7 Transport Settings domain editing error

Report bugs and workarounds
Post Reply
sefornes
Posts: 3
Joined: 21 May 2015 12:42

3.0.7 Transport Settings domain editing error

Post 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
DaN
Posts: 240
Joined: 19 Nov 2014 10:04
Location: Earth

Re: 3.0.7 Transport Settings domain editing error

Post 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]
.
.
.
sefornes
Posts: 3
Joined: 21 May 2015 12:42

Re: 3.0.7 Transport Settings domain editing error

Post 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.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: 3.0.7 Transport Settings domain editing error

Post 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.
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: 3.0.7 Transport Settings domain editing error

Post 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
sefornes
Posts: 3
Joined: 21 May 2015 12:42

Re: 3.0.7 Transport Settings domain editing error

Post by sefornes »

Worked like a charm. Thank you very much! :)

Regards,
Svein Erik
Post Reply