Koozali.org: home of the SME Server

[solved] 550 relaying denied to users aliases

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
[solved] 550 relaying denied to users aliases
« 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
« Last Edit: December 04, 2019, 01:39:42 AM by redteo »

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: 550 relaying denied to users aliases
« Reply #1 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

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
Re: 550 relaying denied to users aliases
« Reply #2 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:


Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: [solved] 550 relaying denied to users aliases
« Reply #3 on: December 04, 2019, 04:59:34 PM »
:-)

We all have those days..... !
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation