[pfx] Re: transport_maps : fatal: garbage after "]" in server description...

2024-02-20 Thread Ralf Hildebrandt via Postfix-users
> i am running Postfix 3.4.14 and try to set up mailrouting to multiple
> smtp hosts.
>  transport_maps = hash:/etc/postfix/mailertable
> 
> example.com  smtp:[mx1.foobar.com],smtp:[mx2.foobar.com]
> 
> However i get:
>  fatal: garbage after "]" in server description:
> [mx1.foobar.com],smtp:[mx2.foobar.com]
> 
> Whats the correct syntax? I cant find a hint in the docs :-/

example.com   smtp:[mx1.foobar.com],[mx2.foobar.com]

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration
  Invalidenstraße 120/121 | D-10115 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | https://www.charite.de

___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] transport_maps : fatal: garbage after "]" in server description...

2024-02-19 Thread Ml Ml via Postfix-users
Hello List,

i am running Postfix 3.4.14 and try to set up mailrouting to multiple
smtp hosts.
 transport_maps = hash:/etc/postfix/mailertable

example.com  smtp:[mx1.foobar.com],smtp:[mx2.foobar.com]

However i get:
 fatal: garbage after "]" in server description:
[mx1.foobar.com],smtp:[mx2.foobar.com]

Whats the correct syntax? I cant find a hint in the docs :-/

Thanks,
Michael
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


RE: fatal: garbage after "]" in server description:

2009-07-15 Thread Kammen van, Marco, Springer SBM NL
-Original Message-
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema
Sent: Wednesday, July 15, 2009 1:07 PM
To: Postfix users
Subject: Re: fatal: garbage after "]" in server description:

>Are you perhaps using a mis-configured using LDAP or *SQL query?
>Multiple replies are concatenated with ','.

That got me on the right track.
The ldap queries are fine as far as I know, only the duplicate address
in AD messed things up (which shouldn't even be possible)
Removed the duplicate address and the error is gone.

Thanks! 





Re: fatal: garbage after "]" in server description:

2009-07-15 Thread Wietse Venema
Kammen van, Marco, Springer SBM NL:
> Thats the strange thing, the right hand side is just 
> relay:[SEGBLOGR0008.springer-sbm.com]
> I can't find any line which has 
> [SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer-sbm.com]

Are you perhaps using a mis-configured using LDAP or *SQL query?
Multiple replies are concatenated with ','.

Wietse


RE: fatal: garbage after "]" in server description:

2009-07-14 Thread Kammen van, Marco, Springer SBM NL

* Kammen van, Marco, Springer SBM NL :
>> Hi All,
>> 
>>  
>> 
>> After adding a couple of hundred lines to transport.misc, these errors
>> are popping up in the mail.log:
> 
>  
> 
>> Jul 14 04:09:14 servername postfix/smtp[22020]: fatal: garbage after "]"
>> in server description:
>> [SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer-sbm.com]

>[SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer-sbm.com]
>is invalid as right hand side

>Either use:
>[SEGBLOGR0008.springer-sbm.com]
>or
>relay:[SEGBLOGR0008.springer-sbm.com]


Thats the strange thing, the right hand side is just 
relay:[SEGBLOGR0008.springer-sbm.com]
I can't find any line which has 
[SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer-sbm.com]

Is there a way we can get the error message to tell which line in the config 
has this error?




Re: fatal: garbage after "]" in server description:

2009-07-14 Thread Sahil Tandon
On Tue, 14 Jul 2009, Kammen van, Marco, Springer SBM NL wrote:

> Is there a limit in the length of an email address? We have a couple of
> crazy long addresses in there e.g.

http://tools.ietf.org/html/rfc5321#section-4.5.3.1

-- 
Sahil Tandon 


Re: fatal: garbage after "]" in server description:

2009-07-14 Thread Ralf Hildebrandt
* Kammen van, Marco, Springer SBM NL :
> Hi All,
> 
>  
> 
> After adding a couple of hundred lines to transport.misc, these errors
> are popping up in the mail.log:
> 
>  
> 
> Jul 14 04:09:14 servername postfix/smtp[22020]: fatal: garbage after "]"
> in server description:
> [SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer-sbm.com]

[SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer-sbm.com]
is invalid as right hand side

Either use:
[SEGBLOGR0008.springer-sbm.com]
or
relay:[SEGBLOGR0008.springer-sbm.com]

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



fatal: garbage after "]" in server description:

2009-07-14 Thread Kammen van, Marco, Springer SBM NL
Hi All,

 

After adding a couple of hundred lines to transport.misc, these errors
are popping up in the mail.log:

 

Jul 14 04:09:14 servername postfix/smtp[22020]: fatal: garbage after "]"
in server description:
[SEGBLOGR0008.springer-sbm.com],relay:[SEGBLOGR0008.springer

-sbm.com]

 

It's a shame it doesn't tell you which line contains the error cause we
have a few thousand lines in that file, and lots of them contain this
server.

When searching for a invalid entry using that servername I wasn't able
to find anything wrong.

 

The only thing I can imagine is that we hit some kind of limit

Is there a limit in the length of an email address? We have a couple of
crazy long addresses in there e.g.

 

bmccomplementaryandalternativemedic...@biomedcentral.com

bmcmedicalinformaticsanddecisionmak...@biomedcentral.com

 

Thanks! 

 

 

- 

Marco van Kammen
Springer Science+Business Media
System Manager & Postmaster 

- 

van Godewijckstraat 30 | 3311 GX
Office Number: 05E21 
Dordrecht | The Netherlands 

-  

tel 

 +31(78)6576446

fax 

 +31(78)6576302

- 

www.springeronline.com <http://www.springeronline.com>  
www.springer.com <http://www.springer.com/> 

-