Skip to Content.
Sympa Menu

en - Re: [sympa-users] Postfix configuration, virtual hosts and "Recipient address rejected"

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "stefano.antonelli@cnaf" <address@concealed>
  • To: Pierre Abbat <address@concealed>, address@concealed
  • Subject: Re: [sympa-users] Postfix configuration, virtual hosts and "Recipient address rejected"
  • Date: Fri, 15 Dec 2017 00:05:00 +0100

Hi Pierre,

thank you for your answer and explanation which I will examine;

> The file that Sympa adds lines to when creating a list is an alias
map, not a
> transport map. It should be separate from /etc/aliases (which is owned by
> root) and should be listed in /etc/postfix/main.cf in this line:
> alias_maps = hash:/etc/aliases,hash:/var/lib/sympa/etc/sympa_aliases
> (your location may be different, since you're using RPM and I'm using
deb).

I've tried to change the alias but it doesn't work:

alias_maps = hash:/etc/aliases,hash:/etc/sympa/sympa_transport (I left
the same name and format)
...
transport_maps = hash:/etc/sympa/transport.sympa

restart postfix but I still get a

"NOQUEUE: reject:...Recipient address rejected: User unknown in
recipient table;"

Still it'not clear, in maillog, in ">>> CHECKING RECIPIENT MAPS <<<"
section I see:

...
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find:
recipient_canonical_maps: address@concealed: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find:
recipient_canonical_maps: prova-1: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find:
recipient_canonical_maps: @fake.domain.com: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: mail_addr_find:
address@concealed -> (not found)
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find: canonical_maps:
address@concealed: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find: canonical_maps:
prova-1: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find: canonical_maps:
@fake.domain.com: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: mail_addr_find:
address@concealed -> (not found)
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find:
virtual_alias_maps: address@concealed: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find:
virtual_alias_maps: prova-1: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: maps_find:
virtual_alias_maps: @fake.domain.com: not found
Dec 14 23:47:18 fake postfix/smtpd[26195]: mail_addr_find:
address@concealed -> (not found)

like if the sympa_transport is ignored; btw, having seen
virtual_alias_maps in the maillog, I've tried to define:

virtual_alias_maps =
hash:/etc/sympa/virtual.sympa,hash:/etc/sympa/sympa_transport

but without success. At the moment I do not understand (perhaps it's a
silly configuration which I'm missing but I don't know)

thank you
cheers
stefano


On 12/14/2017 11:06 PM, Pierre Abbat wrote:
> On Thursday, December 14, 2017 1:45:31 PM EST stefano.antonelli@cnaf wrote:
>> sendmail_aliases /etc/sympa/sympa_transport
>> aliases_program postmap
>> aliases_db_type hash
>>
>> ====
>>
>> this is the /etc/sympa/sympa_transport
>> -rw-r----- 1 sympa sympa 1868 Dec 14 11:35 /etc/sympa/sympa_transport
>> -rw-r----- 1 sympa sympa 12288 Dec 14 12:42 /etc/sympa/sympa_transport.db
>>
>> it is updated when new lists are created e.g.
>>
>> fake.domain1.com-test-1: "| /usr/libexec/sympa/queue
>> address@concealed"
>
> It's been at least a decade since I've done virtual domains if I ever have,
> but I've been running Postfix almost as long as I've been running Linux.
> Transport maps and aliases are two different things. Transport maps say
> that
> outgoing mail to a domain is sent through another host (e.g. when I had a
> VPN
> to my employer, mail from my home computer to my employer's domain was sent
> over the VPN instead of to my ISP's mail server). Alias maps say that
> incoming
> mail to an address is rerouted to another address or, in Sympa's case,
> piped
> to a program.
>
> The file that Sympa adds lines to when creating a list is an alias map, not
> a
> transport map. It should be separate from /etc/aliases (which is owned by
> root) and should be listed in /etc/postfix/main.cf in this line:
> alias_maps = hash:/etc/aliases,hash:/var/lib/sympa/etc/sympa_aliases
> (your location may be different, since you're using RPM and I'm using deb).
>
> Pierre
>




Archive powered by MHonArc 2.6.19+.

Top of Page