mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
email: Local delivery: use full email address
If the domain part was not provided, $myhostname will be used. In case $myhostname is not in $mydestinations, the email will be relayed. In case $myhostname is invalid, the email will be bounced. The next hop should always be LMTP (local: transport) and hence the `@localhost`
This commit is contained in:
parent
2f77d99899
commit
b172b0b1cd
@ -125,7 +125,8 @@ def schedule_hash_update():
|
||||
alias = models.Alias(**row)
|
||||
key = alias.email_name.encode('ascii') + b'\0'
|
||||
if alias.enabled:
|
||||
value = str(alias.uid_number).encode('ascii') + b'\0'
|
||||
value = str(alias.uid_number).encode('ascii')
|
||||
value += b'@localhost\0'
|
||||
else:
|
||||
value = b'/dev/null\0'
|
||||
db[key] = value
|
||||
|
||||
@ -7,3 +7,4 @@ server_host = ldap://127.0.0.1
|
||||
search_base = dc=thisbox
|
||||
query_filter = (&(objectClass=posixAccount)(uid=%s))
|
||||
result_attribute = uidNumber
|
||||
result_format = %s@localhost
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user