On 03/03/16 07:52, Tom Robinson wrote:
> On 03/03/16 06:33, [email protected] wrote:
>> Am 02.03.2016 um 06:32 schrieb Tom Robinson:
>>> Hi,
>>>
>>> I'm trying to map users to first.last in canonical but I get an
>>> error when sending email to the canonicalized address
>>> first.last@domain:
>> ...
>>> My Error: Mar  2 15:47:36 camber policyd-spf[17984]: None;
>>> identity=helo; client-ip=10.0.6.3; helo=motec.com.au;
>>> [email protected];
>>> [email protected] Mar  2 15:47:36 camber
>>> policyd-spf[17984]: None; identity=mailfrom; client-ip=10.0.6.3; 
>>> helo=motec.com.au; [email protected];
>>> [email protected] Mar  2 15:47:36 camber
>>> postfix/smtpd[17974]: NOQUEUE: reject: RCPT from 
>>> caster.motec.com.au[10.0.6.3]: 550 5.1.1
>>> <[email protected]>: Recipient address rejected: User
>>> unknown in local recipient table; from=<[email protected]>
>>> to=<[email protected]> proto=SMTP helo= <motec.com.au>
>>
>> Hi,
>>
>> can you show the according entries from /etc/aliases and
>> /etc/postfix/canonical?
>>
>> What name has the target mailbox for [email protected]?
> 
> Hi Willi,
> 
> Thanks for taking a look.
> 
> I don't have an entry in aliases and maybe that's the problem. From 
> /etc/postfix/canonical:
> 
> tom             tom.robinson
> 
> The real user is tom.
> 

I have since made this entry in /etc/aliases:

tom.robinson:           tom

and rebuilt with postalias.

If that's the only change and the correct way to set this up, I think it's 
fixed. Is that the
correct way to set it up?

When I send a test email:

# telnet 10.0.6.5 25
Trying 10.0.6.5...
Connected to 10.0.6.5.
Escape character is '^]'.
220 camber.motec.com.au ESMTP Postfix
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: test full.name
email to full.name
.
250 2.0.0 Ok: queued as 2BE6A295D
quit
221 2.0.0 Bye
Connection closed by foreign host.

The log shows this:
Mar  3 07:54:37 camber policyd-spf[27063]: None; identity=mailfrom; 
client-ip=10.0.6.3;
helo=motec.com.au; [email protected]; 
[email protected]
Mar  3 07:54:37 camber postfix/smtpd[27055]: 2BE6A295D: 
client=caster.motec.com.au[10.0.6.3]
Mar  3 07:54:54 camber postfix/cleanup[27064]: 2BE6A295D: message-id=<>
Mar  3 07:54:54 camber opendkim[9340]: 2BE6A295D: can't determine message 
sender; accepting
Mar  3 07:54:54 camber postfix/qmgr[17616]: 2BE6A295D: 
from=<[email protected]>, size=446, nrcpt=1
(queue active)
Mar  3 07:54:55 camber postfix/local[27074]: 2BE6A295D: to=<[email protected]>,
orig_to=<[email protected]>, relay=local, delay=23, 
delays=22/0.03/0/0.06, dsn=2.0.0,
status=sent (delivered to maildir)
Mar  3 07:54:55 camber postfix/qmgr[17616]: 2BE6A295D: removed

And in the Maildir/cur of user tom I see:

$ cat 1456952094.Vfd11I55455b9M998906.camber.motec.com.au:2,a
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received-SPF: None (no SPF record) identity=mailfrom; client-ip=10.0.6.3; 
helo=motec.com.au;
[email protected]; [email protected]
Authentication-Results: camber.motec.com.au; dkim=permerror (bad 
message/signature format)
Received: from caster.motec.com.au (caster.motec.com.au [10.0.6.3])
        by camber.motec.com.au (Postfix) with SMTP id 2BE6A295D
        for <[email protected]>; Thu,  3 Mar 2016 07:54:32 +1100 (AEDT)
Subject: test full.name

email to full.name

I was guessing that this would have to be aliased but didn't see it in the 
documentation for
canonical. Is it the correct way to set up full.name mapping to local users? 
Also I'm more used to
sendmail and qmail. This is my first time configuring postfix.

Kind regards,
Tom

-- 

Tom Robinson
IT Manager/System Administrator

MoTeC Pty Ltd

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: [email protected]



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to