[TriLUG] postfix + cyrus-imap aliases problem

Jason Tower jason at cerient.net
Wed Apr 12 17:53:50 EDT 2006


did you run postalias to generate the aliases.db file?

jason

Michael Hrivnak wrote:
> For those many of you with mail server talent, I have a stumper.
> 
> I have a new Debian stable install on wind.hrivnak.org.  Postfix accepts mail 
> for hrivnak.org and wind.hrivnak.org, delivering it to cyrus imap.  Things 
> work well enough, except the aliases file is completely ignored.  I want 
> somealias at hrivnak.org and somealias at wind.hrivnak.org to both end up at 
> realuser at hrivnak.org.  The virtual file works, and I could understand using 
> it to divert @hrivnak.org mail to @wind.hrivnak.org addresses, but I should 
> still be able to use aliases as well.  The aliases file in use was used 
> successfully in the past, but now postfix bounces mail to those aliases with 
> a message like this:
> 
> #########
> <somealias at wind.hrivnak.org>: host
>     /var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp] said: 550-Mailbox
>     unknown.  Either there is no mailbox associated with this 550-name or you
>     do not have authorization to see it. 550 5.1.1 User unknown (in reply to
>     RCPT TO command)
> #########
> 
> and this is from /var/log/mail.info
> 
> #########
> Apr 12 17:23:43 localhost postfix/smtpd[24899]: connect from 
> user-1120798.dsl.mindspring.com[66.32.29.40]
> Apr 12 17:23:44 localhost postfix/smtpd[24899]: 18746892C: 
> client=user-1120798.dsl.mindspring.com[66.32.29.40]
> Apr 12 17:23:44 localhost postfix/cleanup[24901]: 18746892C: 
> message-id=<20060412212343.7ACCA97CC9 at coldstream.homeip.net>
> Apr 12 17:23:44 localhost postfix/smtpd[24899]: disconnect from 
> user-1120798.dsl.mindspring.com[66.32.29.40]
> Apr 12 17:23:44 localhost postfix/qmgr[24857]: 18746892C: 
> from=<mhrivnak at coldstream.homeip.net>, size=6180, nrcpt=1 (queue active)
> Apr 12 17:23:44 localhost postfix/lmtp[24903]: 18746892C: 
> to=<somealias at wind.hrivnak.org>, 
> relay=/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=0, 
> status=bounced (host /var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp] 
> said: 550-Mailbox unknown.  Either there is no mailbox associated with this 
> 550-name or you do not have authorization to see it. 550 5.1.1 User unknown 
> (in reply to RCPT TO command))
> #########
> 
> and here come the relevant settings.  Thanks for your help!
> 
> Michael
> 
> #########
> wind:/etc/postfix# postconf -n
> alias_database = hash:/etc/postfix/aliases
> alias_maps = hash:/etc/postfix/aliases
> append_dot_mydomain = no
> biff = no
> config_directory = /etc/postfix
> inet_interfaces = all
> local_recipient_maps = proxy:unix:passwd.byname $alias_maps 
> hash:/etc/postfix/local_addresses
> local_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
> mailbox_size_limit = 0
> mydestination = $myhostname, localhost.$mydomain, localhost, hrivnak.org, 
> wind.hrivnak.org
> mydomain = hrivnak.org
> myhostname = wind.hrivnak.org
> mynetworks = 192.168.12.0/24 127.0.0.0/8
> myorigin = $mydomain
> relayhost = mail.optonline.net
> smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
> transport_maps = hash:/etc/postfix/transport
> virtual_alias_maps = hash:/etc/postfix/virtual
> #########
> 
> #########
> wind:/etc# grep -v "#" cyrus.conf
> START {
>         recover         cmd="/usr/sbin/ctl_cyrusdb -r"
>         delprune        cmd="/usr/sbin/ctl_deliver -E 3"
>         tlsprune        cmd="/usr/sbin/tls_prune"
> }
> 
> SERVICES {
>         imap            cmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
>         lmtpunix        cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" 
> prefork=0 maxchild=20
>         sieve           cmd="timsieved" listen="localhost:sieve" prefork=0 
> maxchild=100
>         notify          cmd="notifyd" listen="/var/run/cyrus/socket/notify" 
> proto="udp" prefork=1
> }
> 
> EVENTS {
>         checkpoint      cmd="/usr/sbin/ctl_cyrusdb -c" period=30
>         delprune        cmd="/usr/sbin/ctl_deliver -E 3" at=0401
>         tlsprune        cmd="/usr/sbin/tls_prune" at=0401
> }
> #########
> 
> #########
> wind:/etc# grep -v ^$ imapd.conf| grep -v "#"
> configdirectory: /var/lib/cyrus
> defaultpartition: default
> partition-default: /var/spool/cyrus/mail
> partition-news: /var/spool/cyrus/news
> newsspool: /var/spool/news
> altnamespace: no
> unixhierarchysep: no
> admins: cyrus
> allowanonymouslogin: no
> popminpoll: 1
> autocreatequota: 0
> umask: 077
> sendmail: /usr/sbin/sendmail
> sieveusehomedir: false
> sievedir: /var/spool/sieve
> hashimapspool: true
> allowplaintext: yes
> sasl_mech_list: PLAIN
> sasl_pwcheck_method: auxprop
> sasl_auto_transition: no
> tls_ca_path: /etc/ssl/certs
> tls_session_timeout: 1440
> tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
> lmtpsocket: /var/run/cyrus/socket/lmtp
> idlesocket: /var/run/cyrus/socket/idle
> notifysocket: /var/run/cyrus/socket/notify
> #########
> 
> #########
> wind:/etc$ cyradm localhost
> IMAP Password:
>               localhost.localdomain> ver
> name       : Cyrus IMAPD
> version    : v2.1.18-IPv6-Debian-2.1.18-1 2005/02/14 06:45:19
> vendor     : Project Cyrus
> support-url: http://asg.web.cmu.edu/cyrus
> os         : Linux
> os-version : 2.6.8-2-386
> environment: Cyrus SASL 2.1.19
>              Sleepycat Software: Berkeley DB 3.2.9: (February  1, 2005)
>              Built w/OpenSSL 0.9.7e 25 Oct 2004
>              Running w/OpenSSL 0.9.7e 25 Oct 2004
>              CMU Sieve 2.2
>              DRAC
>              TCP Wrappers
>              UCD-SNMP 4.2.5
>              mmap = shared
>              lock = fcntl
>              nonblock = fcntl
>              auth = unix
>              idle = poll
>              mailboxes.db = skiplist
>              seen.db = skiplist
>              subs.db = flat
>              deliver.db = db3-nosync
>              tls_sessions.db = db3-nosync
> #########



More information about the TriLUG mailing list