Skip to Content.
Sympa Menu

en - [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: address@concealed
  • Subject: [sympa-users] Postfix configuration, virtual hosts and "Recipient address rejected"
  • Date: Thu, 14 Dec 2017 13:45:31 +0100

Hi sympa-users,

it's the first time that I write to this lists so I greet everybody.

We are using sympa with virtual hosts (19 domains) and ~2100 Mailing lists installed from source with sendmail.

Now we are installing sympa from rpm (http://Sympa-JA.org/) with postfix. We are following the manual from https://sympa-community.github.io/manual/ and postfix "https://sympa-community.github.io/manual/install/configure-mail-server-postfix.html";

At the moment we are testing three "fake" domains and it works apart from the fact that (it's not a small issue :-) ) when I write to a ML I get a bounce with a 550 error "Recipient address rejected: User unknown in recipient table".

Has this happened to anyone or have you any idea of this? I put some configurations and log files from sympa and postfix changing domains and IPs. Sorry or the length...

====

this is the tail of sympa.conf:
-rw-r----- 1 sympa sympa 23066 Dec 11 17:48 /etc/sympa/sympa.conf
...
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"
fake.domain1.com-test-1-request: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1-editor: "| /usr/libexec/sympa/queue address@concealed"
#fake.domain1.com-test-1-subscribe: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1-unsubscribe: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1-owner: "| /usr/libexec/sympa/bouncequeue address@concealed"
#------------------------------ test-2: list alias created 13 dic 2017
fake.domain1.com-test-2: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-request: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-editor: "| /usr/libexec/sympa/queue address@concealed"
#fake.domain1.com-test-2-subscribe: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-unsubscribe: "| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-owner: "| /usr/libexec/sympa/bouncequeue address@concealed"
#------------------------------ prova-1: list alias created 14 dic 2017
prova-1: "| /usr/libexec/sympa/queue address@concealed"
prova-1-request: "| /usr/libexec/sympa/queue address@concealed"
prova-1-editor: "| /usr/libexec/sympa/queue address@concealed"
#prova-1-subscribe: "| /usr/libexec/sympa/queue address@concealed"
prova-1-unsubscribe: "| /usr/libexec/sympa/queue address@concealed"
prova-1-owner: "| /usr/libexec/sympa/bouncequeue address@concealed"

====

and so is sympa_transport.db (this is a "strings" command result)

"| /usr/libexec/sympa/queue address@concealed"
prova-1:
"| /usr/libexec/sympa/queue address@concealed"
prova-1-unsubscribe:
"| /usr/libexec/sympa/queue address@concealed"
prova-1-request:
"| /usr/libexec/sympa/bouncequeue address@concealed"
prova-1-owner:
"| /usr/libexec/sympa/queue address@concealed"
prova-1-editor:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1-unsubscribe:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1-request:
"| /usr/libexec/sympa/bouncequeue address@concealed"
fake.domain1.com-test-1-owner:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-1-editor:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-unsubscribe:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-request:
"| /usr/libexec/sympa/bouncequeue address@concealed"
fake.domain1.com-test-2-owner:
"| /usr/libexec/sympa/queue address@concealed"
fake.domain1.com-test-2-editor:

I do not understand why these addresses are not seen by postfix; if I try to execute a "postmap" on sympa_transport I get a warning:

postmap: warning: sympa_transport, line 1: record is in "key: value" format; is this an alias file?

and I've tried even with a postalias without results:

====

This is part of the main.cf file:

## virtual maps
virtual_mailbox_domains = $mydestination,hash:/etc/sympa/transport.sympa
virtual_mailbox_maps = hash:/etc/sympa/sympa_transport,hash:/etc/sympa/transport.sympa,hash:/etc/sympa/virtual.sympa
## virtual maps
virtual_alias_maps = hash:/etc/sympa/virtual.sympa
## transport maps
transport_maps = hash:/etc/sympa/transport.sympa,hash:/etc/sympa/sympa_transport
## for VERP
recipient_delimiter = +

====

qnd this is the output of a verbose postfix log (it seems that both virtual_domains and recipients are not found)

Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: >>> START Recipient address RESTRICTIONS <<<
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: generic_checks: name=permit_mynetworks
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: permit_mynetworks: smtpauth.domain1.com 111.111.111.56
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostname: smtpauth.domain1.com ~? 127.0.0.0/8
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostaddr: 111.111.111.56 ~? 127.0.0.0/8
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostname: smtpauth.domain1.com ~? 111.111.113.0/24
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostaddr: 111.111.111.56 ~? 111.111.113.0/24
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostname: smtpauth.domain1.com ~? [::1]/128
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostaddr: 111.111.111.56 ~? [::1]/128
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostname: smtpauth.domain1.com ~? [fe80::]/64
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_hostaddr: 111.111.111.56 ~? [fe80::]/64
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_list_match: smtpauth.domain1.com: no match
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_list_match: 111.111.111.56: no match
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: generic_checks: name=permit_mynetworks status=0
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: generic_checks: name=permit_sasl_authenticated
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: generic_checks: name=permit_sasl_authenticated status=0
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: generic_checks: name=defer_unauth_destination
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: reject_unauth_destination: address@concealed
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: permit_auth_destination: address@concealed
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: ctable_locate: leave existing entry key address@concealed
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: generic_checks: name=defer_unauth_destination status=0
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: >>> END Recipient address RESTRICTIONS <<<
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: >>> CHECKING RECIPIENT MAPS <<<
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: ctable_locate: leave existing entry key address@concealed
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: maps_find: recipient_canonical_maps: address@concealed: not found
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? lists-dev.domain.com
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? localhost.domain.com
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? localhost
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_list_match: lists-dev.domain1.com: no match
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: maps_find: recipient_canonical_maps: @lists-dev.domain1.com: not found
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: mail_addr_find: address@concealed -> (not found)
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: maps_find: canonical_maps: address@concealed: not found
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? lists-dev.domain.com
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? localhost.domain.com
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? localhost
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_list_match: lists-dev.domain1.com: no match
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: maps_find: canonical_maps: @lists-dev.domain1.com: not found
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: mail_addr_find: address@concealed -> (not found)
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: maps_find: virtual_alias_maps: address@concealed: not found
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? lists-dev.domain.com
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? localhost.domain.com
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_string: lists-dev.domain1.com ~? localhost
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: match_list_match: lists-dev.domain1.com: no match
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: maps_find: virtual_alias_maps: @lists-dev.domain1.com: not found
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: mail_addr_find: address@concealed -> (not found)
Dec 13 17:42:31 lists-dev postfix/smtpd[6733]: NOQUEUE: reject: RCPT from smtpauth.domain1.com[111.111.111.56]: 550 5.1.1 <address@concealed>: Recipient address rejected:


thank you
cheers
stefano



Archive powered by MHonArc 2.6.19+.

Top of Page