Mailinglist Archive: opensuse (1486 mails)

< Previous Next >
Re: [opensuse] User unknown in relay recipient table when sending mail to user alias
  • From: Sandy Drobic <opensuse@xxxxxxxxx>
  • Date: Mon, 03 Aug 2009 11:43:15 +0200
  • Message-id: <4A76B133.4070700@xxxxxxxxx>
Clayton wrote:
The Default for relay_domains is:
postconf -d relay_domains
relay_domains = $mydestination

Meaning, that all subdomains listed in mydestination become relay_domains.

Check that the domain you wish to receive as a local domain is included in

postconf -d relay_domains
relay_domains = $mydestination

Grin! Here's one of your problems (a very common one): you haven't researched
what the command does.

postconf -d : shows the default settings
postconf param : shows the actual value of the parameter
postconf -n : shows all parameters that deviate from the default

postconf -d mydestination
mydestination = $myhostname, localhost.$mydomain, localhost

postconf -d mydomain
mydomain = localdomain


That is the reason why these are useless. (^-^)

Also set relay_domains to an empty value to disable the subdomain trap.

relay_domains =

OK, tried that and the mails are still bouncing - on old aliases like
postmaster, abuse etc.

The output of "postconf -n" should be sufficient.

That would probably help :-P

Here's the output (sanitized a little.. I removed my real domain name
and substituted "")

alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports =
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_protocols = all
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
message_strip_characters = \0
mydestination = $myhostname, $mydomain, localhost.$mydomain

These are the domains that your postfix server sees as local domains:

Valid recipients are in /etc/passwd and /etc/aliases.

What does the logline say about the bounced email?

mydomain =
myhostname =
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_domains =
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/password
smtp_sasl_security_options =
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_reject_unlisted_sender = no
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual

Careful with that setting. You might set up a domain as a virtual_alias_domain
without realising it.

virtual_alias_maps = hash:/etc/postfix/virtual

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups