Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: redteo on December 02, 2019, 08:20:11 PM

Title: [solved] 550 relaying denied to users aliases
Post by: redteo on December 02, 2019, 08:20:11 PM
hello.
i'm receiving this error whe i try to sen a mail to a user using is pseudonym,

es:
user is julius.cesar@server.tld
is username is julius
if i send one mail to julis@server.tld the delivery occours without error
if isend to julius.cesar@server.tld i receve
Code: [Select]
550 relaying denied julius.cesar@server.tld
any idea, i looken in old posts without finding usefulls infos
Title: Re: 550 relaying denied to users aliases
Post by: mmccarn on December 03, 2019, 01:09:22 PM
The default pseudonym creation:
- concatenates 'FirstName', " " (space), and 'LastName'
- strips leading and trailing spaces
- replaces multiple spaces with single spaces
- replaces the remaining spaces with dots
- converts the result to lower case
- creates an alternative where the dots have been replaced by underscores

'julius' is (presumably) the account's username value - but may not be either FirstName or LastName.

For example, my *account* is "mmccarn", my *FirstName* is "Michael J" and my *LastName* is "McCarn".  This makes my pseudonyms "michael.j.mccarn@..." and "michael_j_mccarn@..."

Check the settings for the account 'julius'.  Verify that 'FirstName', 'LastName' are set as you expect.
Code: [Select]
db accounts show julius

Check that your SME has the usual pseudonym (alias) entries in the accounts db (if these have been deleted at some point they may not be automatically recreated):
Code: [Select]
db accounts print |grep pseudonym.*julius

If everything above looks right, check the actual configuration files generated by the db settings.

For the server to think the pseudonym is local it needs to exist in /var/service/qpsmtpd/config/goodrcptto (note that if FirstName or LastName dos not contain 'julius' the output from this command may be empty):
Code: [Select]
grep julius /var/service/qpsmtpd/config/goodrcptto

Once the server has accepted the email, qmail needs to know who to deliver it to.  This is controlled by /var/qmail/users/assign:
Code: [Select]
grep julius /var/qmail/users/assign
Title: Re: 550 relaying denied to users aliases
Post by: redteo on December 04, 2019, 01:39:19 AM
thanks..
found the error..
go sleep more often
becouse i mistyped the user name....
i lookend a few times without see the error  :sad:

Title: Re: [solved] 550 relaying denied to users aliases
Post by: ReetP on December 04, 2019, 04:59:34 PM
:-)

We all have those days..... !