Hello. I am using Postfix and Cyrus on Debian stable.
When Postfix receives a message for my destination it will ask MySQL for a username. The username that MySQL returns is in the form user.domain.tld After that it seems that postfix appends @$myorigin and when asking Cyrus if this user exist, Cyrus says no. I guess I should put append_at_myorigin=no somewhere. Where should I put that, or is something else wrong? <master.cf> # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (50) # ========================================================================== smtp inet n - - - - smtpd # -o content_filter=smtp-amavis:[127.0.0.1]:10024 #628 inet n - - - - qmqpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - - 300 1 qmgr #qmgr fifo n - - 300 1 nqmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce flush unix n - - 1000? 0 flush smtp unix - - - - - smtp showq unix n - - - - showq error unix - - - - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # The Cyrus deliver program has changed incompatibly. # cyrus unix - n n - - pipe flags= user=cyrus argv=/usr/sbin/cyrdeliver -r ${sender} -m ${extension} ${user} # flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} # only used by postfix-tls #smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes 127.0.0.1:10025 inet n - y - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes smtp-amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes #smtp-amavis unix - - y - 2 lmtp # -o lmtp_data_done_timeout=1200 # -o lmtp_send_xforward_command=yes proxymap unix - - n - - proxymap trace unix - - - - 0 bounce verify unix - - - - 1 verify #policy unix - n n - - spawn # user=nobody argv=/usr/bin/spfquery -sender=${sender} -helo= policy unix - n n - - spawn user=nobody argv=/usr/bin/perl /usr/lib/postfix/smtpd-policy.pl relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 </master.cf> <main.cf> # see /usr/share/postfix/main.cf.dist for a commented, fuller # version of this file. soft_bounce = yes # Do not change these directory settings - they are critical to Postfix # operation. command_directory = /usr/sbin daemon_directory = /usr/lib/postfix program_directory = /usr/lib/postfix smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) setgid_group = postdrop biff = no owner_request_special = no # appending .domain is the MUA's job. append_dot_mydomain = no #append_at_myorigin = no myhostname = mail.xxx.dk alias_maps = hash:/etc/aliases alias_database = $alias_maps #myorigin = /etc/mailname myorigin = $myhostname mydestination = localhost.localdomain, localhost, $myhostname, mysql:/etc/postfix/mysql-mydestination.cf mynetworks = 127.0.0.0/8 mailbox_command = mailbox_size_limit = 0 #mailbox_transport = cyrus #local_transport = cyrus recipient_delimiter = + virtual_maps = hash:/etc/postfix/virtual, mysql:/etc/postfix/mysql-virtual.cf #virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf, hash:/etc/postfix/virtual #sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf canonical_maps = mysql:/etc/postfix/mysql-canonical.cf relay_domains = mysql:/etc/postfix/mysql-relay.cf transport_maps = mysql:/etc/postfix/mysql-transport.cf #smtpd_sasl_auth_enable = yes #smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination #smtpd_sasl_security_options = noanonymous #smtpd_sasl_local_domain = #broken_sasl_auth_clients = yes content_filter = smtp-amavis:[127.0.0.1]:10024 smtpd_helo_required = yes strict_rfc821_envelopes = yes disable_vrfy_command = yes smtpd_client_restrictions = smtpd_helo_restrictions = smtpd_sender_restrictions = smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service unix:private/policy, check_policy_service inet:127.0.0.1:60000, reject_unauth_pipelining, reject_invalid_hostname, reject_non_fqdn_hostname, reject_rbl_client relays.ordb.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rhsbl_sender dsn.rfc-ignorant.org, permit #cyrus_destination_recipient_limit = 1 strict_8bitmime = no strict_8bitmime_body = no strict_mime_encoding_domain = yes strict_7bit_header = no #header_checks = pcre:/etc/postfix/header_checks unknown_local_recipient_reject_code = 450 </main.cf> ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html