Hi,

Sorry for the previous messages in HTML, but had to use webmail and
forgot to disable it.
Please, read below.



On 2016.02.07 12:44:09 +0100, K. Peter wrote:
> Hi,
> 
> 
> 
> > But the error message 550 Invalid recipient shows up once more.
> 
> <snip>
> > The error message I get everytime I try to send an email for one of
> > the above mentioned emails:
> >  >>> 550 Invalid recipient
> > smtp-in: session 99934343 received invalid command: "RCPT
> > TO:<[email protected][[email protected]]>"
> > (the complete log is below)
> </snip>
> The "550 Invalid recipient" is a bit a catch-all error message, it 
> doesn't point you to the real issue necessarily.
Ok.  And is there is any other way to improve debugging in this case?
presume...
 
> <snip>
> > # cat vusers
> > [email protected][[email protected]]            
> > [email protected][[email protected]]
> </snip>
> Ok, this differs from your initial post. But why two times? Nevertheless 
> I think this isn't correct at all. On the other side IMHO the 
> documentation lacks a bit on virtuals.
The documentation says that 
"""The table users holds a key-value mapping of virtual to system users."""

But https://www.opensmtpd.org/table.5.html says:
"""In a virtual domain context, the key is either a user part, a full
email address or a catch all, following selection rules described in
smtpd.conf(5), and the value is one or many recipients as described in
aliases(5):

user1                   otheruser 
[email protected]       otheruser1,otheruser2 
@example.org            [email protected] 
@                       [email protected]
"""
It seems from this example that a virtual user doesn't need to be
mapped to a system user in a virtual domain context.

So, I have a question: do I need have to create a system user for this
mapping or not?

Previously I thought of having, for example, [email protected]
emails to be delievered to /var/vmail/[email protected], and assumed
that virtual users was a fine-grained control after defining virtual
domains.

 
> <snip>  
> > # cat creds
> > [email protected][[email protected]]    $6$Gp2XcD
> </snip>
> Maybe this works but looks strange to me.
The [...] was probably added by the webmail HTML.
What I have in the creds file is:
[email protected]    $6$Gp2XcD....

And it seems that is working ok.

> <snip>
> > smtp: 0x802947000: >>> 250 2.0.0: Ok
> > smtp: 0x802947000: <<< RCPT 
> > TO:<[email protected][[email protected]]>
> > smtp: 0x802947000: >>> 550 Invalid recipient
> > smtp-in: session 922ed1201668f9c2: received invalid command: "RCPT
> > TO:<[email protected][[email protected]]>"
> </snip>
> 
> This line looks strange to me. Maybe I'm wrong, but I couldn't remember 
> to have seen this before. Shouldn't it be "<[email protected]>" only?
Yes, the problem must have been the HTML markup as said above.
The log has:
"""
smtp: 0x802948000: >>> 250 2.0.0: Ok
smtp: 0x802948000: <<< RCPT TO:<[email protected]>
smtp: 0x802948000: >>> 550 Invalid recipient
smtp-in: session 0405febc0752bb4e: received invalid command: "RCPT
TO:<[email protected]>"
"""

> 
>  From the given info it could be an assumption only, but it seems to me 
> that your table vusers is not correct. It looks like you try to deliver 
> to "[email protected][...]", but the real (virtual) username is 
> "comercial" only. May be you should check the value of 
> "%users.username".
How do I do this whithout having the mail delievered to a file?

> 
> I apologize if not, but it should be allowed to me to give some general 
> hints for debugging:
> - simplify your configuration to the minimum of needs
> - add one a new option (at time only) and test it with ANY possible 
> cases
> - if all is ok, add the next option
> - AND: check out any new option by itself alone only!
This last time I tried was with a stripped config:

"""
pki myhost.pt certificate
"/usr/local/etc/ssl/myhost_wosign_apache.crt" pki myhost.pt key
"/usr/local/etc/ssl/private/myhost_wosign_apache.key"

table creds file:/usr/local/etc/mail/creds

listen on 192.168.0.8 port smtp tls pki myhost.pt auth-optional
listen on 192.168.0.8 port submission tls-require pki myhost.pt auth
<creds>

accept from any  deliver to maildir "/var/vmail/%{user.username}/inbox"
"""

Only one filter rule very permissive, but still get the the "invalid
recipient" message.


Permissions of /var/vmail are too permissive, but just trying to find
the cause of the problem:
# ls -ld /var/vmail/
drwxrwxrwx  2 mailnull  mail  512 Jan 29 15:19 /var/vmail/


In a web search, there was something about the domain name not being
correctly set.  But:
"""
# cat /usr/local/etc/mail/mailname 
myhost.pt
"""

I don't know what else to look for.
Any ideas?


Luis Mendes

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to