[opensuse] postfix and relay access denied

I have added that, and get the messages below when a message arrives. I sorted out the relay issue: mysteriously, the local machine (acme.pacific) needs to be listed as a relay or it fails. So now it gets past that. It now fails a bit later. I have added acme.pacific to virtual as acme.pacific acme Not sure of that is the corrent syntax. postfix/smtpd[12377]: >>> START Recipient address RESTRICTIONS <<< postfix/smtpd[12377]: generic_checks: name=permit_mynetworks postfix/smtpd[12377]: permit_mynetworks: internal.opq.se 10.209.160.46 postfix/smtpd[12377]: match_hostname: internal.opq.se ~? 127.0.0.0/8 postfix/smtpd[12377]: match_hostaddr: 10.209.160.46 ~? 127.0.0.0/8 postfix/smtpd[12377]: match_hostname: internal.opq.se ~? 10.2.10.0/24 postfix/smtpd[12377]: match_hostaddr: 10.209.160.46 ~? 10.2.10.0/24 postfix/smtpd[12377]: match_hostname: internal.opq.se ~? 10.1.5.0/24 postfix/smtpd[12377]: match_hostaddr: 10.209.160.46 ~? 10.1.5.0/24 postfix/smtpd[12377]: match_list_match: internal.opq.se: no match postfix/smtpd[12377]: match_list_match: 10.209.160.46: no match postfix/smtpd[12377]: generic_checks: name=permit_mynetworks status=0 postfix/smtpd[12377]: generic_checks: name=reject_unauth_destination postfix/smtpd[12377]: reject_unauth_destination: roger@acme.pacific postfix/smtpd[12377]: permit_auth_destination: roger@acme.pacific postfix/smtpd[12377]: ctable_locate: move existing entry key roger@acme.pacific postfix/smtpd[12377]: generic_checks: name=reject_unauth_destination status=0 postfix/smtpd[12377]: >>> END Recipient address RESTRICTIONS <<< postfix/smtpd[12377]: >>> CHECKING RECIPIENT MAPS <<< postfix/smtpd[12377]: ctable_locate: leave existing entry key roger@acme.pacific postfix/smtpd[12377]: maps_find: recipient_canonical_maps: roger@acme.pacific: not found postfix/smtpd[12377]: match_string: acme.pacific ~? linux.local postfix/smtpd[12377]: match_string: acme.pacific ~? localhost.local postfix/smtpd[12377]: match_list_match: acme.pacific: no match postfix/smtpd[12377]: maps_find: recipient_canonical_maps: @acme.pacific: not found postfix/smtpd[12377]: mail_addr_find: roger@acme.pacific -> (not found) postfix/smtpd[12377]: maps_find: canonical_maps: roger@acme.pacific: not found postfix/smtpd[12377]: match_string: acme.pacific ~? linux.local postfix/smtpd[12377]: match_string: acme.pacific ~? localhost.local postfix/smtpd[12377]: match_list_match: acme.pacific: no match postfix/smtpd[12377]: maps_find: canonical_maps: @acme.pacific: not found postfix/smtpd[12377]: mail_addr_find: roger@acme.pacific -> (not found) postfix/smtpd[12377]: maps_find: virtual_alias_maps: roger@acme.pacific: not found postfix/smtpd[12377]: match_string: acme.pacific ~? linux.local postfix/smtpd[12377]: match_string: acme.pacific ~? localhost.local postfix/smtpd[12377]: match_list_match: acme.pacific: no match postfix/smtpd[12377]: maps_find: virtual_alias_maps: @acme.pacific: not found postfix/smtpd[12377]: mail_addr_find: roger@acme.pacific -> (not found) postfix/smtpd[12377]: NOQUEUE: reject: RCPT from internal.opq.se[10.209.160.46]: 550 5.1.1 <roger@acme.pacific>: Recipient address rejected: User unknown in virtual alias table; from=<opensuse- buildservice+bounces-19494-roger=opq.se@opensuse.org> to=<roger@acme.pacific> proto=ESMTP helo=<stockholm.opq.se> postfix/smtpd[12377]: > internal.opq.se[10.209.160.46]: 550 5.1.1 <roger@acme.pacific>: Recipient address rejected: User unknown in virtual alias table postfix/smtpd[12377]: watchdog_pat: 0xb7c7e560 postfix/smtpd[12377]: < internal.opq.se[10.209.160.46]: DATA postfix/smtpd[12377]: > internal.opq.se[10.209.160.46]: 554 5.5.1 Error: no valid recipients -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

Roger Oberholtzer wrote:
I have added that, and get the messages below when a message arrives.
I sorted out the relay issue: mysteriously, the local machine (acme.pacific) needs to be listed as a relay or it fails. So now it gets past that.
If your machine is "acme.pacific", there is no need to add that to the relay table.
It now fails a bit later. I have added acme.pacific to virtual as
acme.pacific acme
Not sure of that is the corrent syntax.
postfix/smtpd[12377]: >>> START Recipient address RESTRICTIONS <<< postfix/smtpd[12377]: generic_checks: name=permit_mynetworks postfix/smtpd[12377]: permit_mynetworks: internal.opq.se 10.209.160.46 postfix/smtpd[12377]: match_hostname: internal.opq.se ~? 127.0.0.0/8 postfix/smtpd[12377]: match_hostaddr: 10.209.160.46 ~? 127.0.0.0/8 postfix/smtpd[12377]: match_hostname: internal.opq.se ~? 10.2.10.0/24 postfix/smtpd[12377]: match_hostaddr: 10.209.160.46 ~? 10.2.10.0/24 postfix/smtpd[12377]: match_hostname: internal.opq.se ~? 10.1.5.0/24 postfix/smtpd[12377]: match_hostaddr: 10.209.160.46 ~? 10.1.5.0/24 postfix/smtpd[12377]: match_list_match: internal.opq.se: no match postfix/smtpd[12377]: match_list_match: 10.209.160.46: no match postfix/smtpd[12377]: generic_checks: name=permit_mynetworks status=0
Okay, so the client wasn't accepted sofar.
postfix/smtpd[12377]: generic_checks: name=reject_unauth_destination postfix/smtpd[12377]: reject_unauth_destination: roger@acme.pacific postfix/smtpd[12377]: permit_auth_destination: roger@acme.pacific postfix/smtpd[12377]: ctable_locate: move existing entry key roger@acme.pacific postfix/smtpd[12377]: generic_checks: name=reject_unauth_destination status=0 postfix/smtpd[12377]: >>> END Recipient address RESTRICTIONS <<<
Okay.
postfix/smtpd[12377]: >>> CHECKING RECIPIENT MAPS <<< postfix/smtpd[12377]: ctable_locate: leave existing entry key roger@acme.pacific postfix/smtpd[12377]: maps_find: recipient_canonical_maps: roger@acme.pacific: not found postfix/smtpd[12377]: match_string: acme.pacific ~? linux.local postfix/smtpd[12377]: match_string: acme.pacific ~? localhost.local postfix/smtpd[12377]: match_list_match: acme.pacific: no match postfix/smtpd[12377]: maps_find: recipient_canonical_maps: @acme.pacific: not found postfix/smtpd[12377]: mail_addr_find: roger@acme.pacific -> (not found) postfix/smtpd[12377]: maps_find: canonical_maps: roger@acme.pacific: not found postfix/smtpd[12377]: match_string: acme.pacific ~? linux.local postfix/smtpd[12377]: match_string: acme.pacific ~? localhost.local postfix/smtpd[12377]: match_list_match: acme.pacific: no match postfix/smtpd[12377]: maps_find: canonical_maps: @acme.pacific: not found postfix/smtpd[12377]: mail_addr_find: roger@acme.pacific -> (not found)
At this point, postfix has determined that 'acme.pacific' is not for delivery to the main local address. What do you have in "mydestination" ?
postfix/smtpd[12377]: maps_find: virtual_alias_maps: roger@acme.pacific: not found postfix/smtpd[12377]: match_string: acme.pacific ~? linux.local postfix/smtpd[12377]: match_string: acme.pacific ~? localhost.local postfix/smtpd[12377]: match_list_match: acme.pacific: no match postfix/smtpd[12377]: maps_find: virtual_alias_maps: @acme.pacific: not found postfix/smtpd[12377]: mail_addr_find: roger@acme.pacific -> (not found)
'acme.pacific' is not a virtual domain either.
postfix/smtpd[12377]: NOQUEUE: reject: RCPT from internal.opq.se[10.209.160.46]: 550 5.1.1 <roger@acme.pacific>: Recipient address rejected: User unknown in virtual alias table; from=<opensuse- buildservice+bounces-19494-roger=opq.se@opensuse.org> to=<roger@acme.pacific> proto=ESMTP helo=<stockholm.opq.se> postfix/smtpd[12377]: > internal.opq.se[10.209.160.46]: 550 5.1.1 <roger@acme.pacific>: Recipient address rejected: User unknown in virtual alias table postfix/smtpd[12377]: watchdog_pat: 0xb7c7e560 postfix/smtpd[12377]: < internal.opq.se[10.209.160.46]: DATA postfix/smtpd[12377]: > internal.opq.se[10.209.160.46]: 554 5.5.1 Error: no valid recipients
and is therefore rejected. -- Per Jessen, Zürich (23.8°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On Tuesday, July 02, 2013 01:51:02 PM Per Jessen wrote:
At this point, postfix has determined that 'acme.pacific' is not for delivery to the main local address. What do you have in "mydestination" ?
$myhostname = acme.pacific and mydestination is the default. The solution that made it work was to add acme.pacific to the relay file. Odd as that is the local destination. But it did the trick. I now get local mail delivery. I did not have this in my previous postfix setup. -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

Roger Oberholtzer wrote:
On Tuesday, July 02, 2013 01:51:02 PM Per Jessen wrote:
At this point, postfix has determined that 'acme.pacific' is not for delivery to the main local address. What do you have in "mydestination" ?
$myhostname = acme.pacific and mydestination is the default.
Okay, so mydestination = $myhostname + localhost.$mydomain. Hmm, that _should_ work.
The solution that made it work was to add acme.pacific to the relay file.
IMO, s/solution/workaround/
Odd as that is the local destination. But it did the trick. I now get local mail delivery.
I did not have this in my previous postfix setup.
It isn't correct either, but if you're happy with it, I guess it doesn't hurt. -- Per Jessen, Zürich (24.7°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

Roger Oberholtzer wrote:
On Tuesday, July 02, 2013 01:51:02 PM Per Jessen wrote:
At this point, postfix has determined that 'acme.pacific' is not for delivery to the main local address. What do you have in "mydestination" ?
$myhostname = acme.pacific and mydestination is the default.
The solution that made it work was to add acme.pacific to the relay file. Odd as that is the local destination. But it did the trick. I now get local mail delivery.
I did not have this in my previous postfix setup.
I have just tested this on a 13.1M2 system. I amended postfix/main.cf with the following: inet_interfaces = all myhostname = acme.pacific Then I sent an email to roger@acme.pacific, which was rejected as there is no local user "roger". So instead I sent a mail to "per@acme.pacific", which went fine. -- Per Jessen, Zürich (24.7°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On Tuesday, July 02, 2013 02:48:09 PM Per Jessen wrote:
Roger Oberholtzer wrote:
On Tuesday, July 02, 2013 01:51:02 PM Per Jessen wrote:
At this point, postfix has determined that 'acme.pacific' is not for delivery to the main local address. What do you have in "mydestination" ?
$myhostname = acme.pacific and mydestination is the default.
The solution that made it work was to add acme.pacific to the relay file. Odd as that is the local destination. But it did the trick. I now get local mail delivery.
I did not have this in my previous postfix setup.
I have just tested this on a 13.1M2 system. I amended postfix/main.cf with the following:
inet_interfaces = all myhostname = acme.pacific
Then I sent an email to roger@acme.pacific, which was rejected as there is no local user "roger". So instead I sent a mail to "per@acme.pacific", which went fine.
How very odd. For me, that is. Solving this is rainy day work. -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Per Jessen
-
Roger Oberholtzer