Postfix: "User unknown in virtual alias table"
Hej eksperter ;]Jeg sidder med et problem, der efterhånden har givet mig flere nætter uden søvn; nemlig Postfix.
Det skal forinden nævnes, at jeg kører Sarge (testing).
Problemet er todelt.
a) Når serveren modtager en mail fra en udefrakommende afsender, bliver den nogle gange discarded med fejlen "User unknown in virtual alias table". Dog findes brugeren i selvsamme tabel.
b) Andre gange får jeg følgende i min syslog, når der modtages en mail:
Oct 26 22:09:04 debian postfix/smtpd[2253]: connect from mail-gw.stofanet.dk[212.10.30.236]
Oct 26 22:09:04 debian postfix/smtpd[2253]: 426F9239E3: client=mail-gw.stofanet.dk[212.10.30.236]
Oct 26 22:09:04 debian postfix/cleanup[2255]: 426F9239E3: message-id=<3d9e02d21ddd37d6434643d73b2fba4f@webmail.stofa.dk>
Oct 26 22:09:04 debian postfix/smtpd[2253]: disconnect from mail-gw.stofanet.dk[212.10.30.236]
Det fungerer heller ikke at telnette til serveren (dvs. få serveren til at skrive mailen til den korrekte brugers mailbox fil). Den lader dog til at acceptere mailen:
220 debian.gamedeveloper.dk ESMTP Postfix (Debian/GNU)
EHLO tester
250-debian.gamedeveloper.dk
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM:<jica@stofanet.dk>
250 2.1.0 Ok
RCPT TO:<jica@gamedeveloper.dk>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
this is not spam
.
250 2.0.0 Ok: queued as C878523A05
quit
221 2.0.0 Bye
I begge tilfælde skrives der intet til nogen filer /var/mail, som er mailbox mappen.
Herunder følger min nuværende konfiguration:
#################### Postfix ####################
[main.cf]
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
append_dot_mydomain = no
alias_maps = hash:/etc/aliases
virtual_alias_domains = hash:/etc/postfix/vdomains
virtual_alias_maps = hash:/etc/postfix/vmaps
virtual_mailbox_base = /var/mail
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_mailbox_domains = hash:/etc/postfix/vdomains
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost
#relayhost = mail.stofanet.dk
#relayhost =
mynetworks = 10.0.0.0/28, 86.52.188.0/22, 86.52.189.0/24, 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_gid_maps = static:105
[vdomains]
gamedeveloper.dk forytwo
[vmaps]
# gamedeveloper.dk
postmaster@gamedeveloper.dk jica
jica@gamedeveloper.dk jica
[aliases]
# Alias for mailer daemon
MAILER-DAEMON : postmaster
# RFC 822 requires that every host have a mail address "postmaster"
postmaster : jica
postfix : root
# Local aliases
jica : jica
[master.cf]
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtpd
virtuel unix - n n - - virtuel
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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 -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}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
#################### Postfix ####################
debian:/etc/postfix# l
total 100
-rw-r--r-- 1 postfix postdrop 185 2006-10-26 20:47 aliases
-rw-r--r-- 1 postfix postdrop 318 2006-10-21 19:09 dynamicmaps.cf
-rw-r--r-- 1 postfix postdrop 881 2006-10-26 21:38 main.cf
-rw-r--r-- 1 postfix postdrop 4033 2006-10-23 13:05 master.cf
-rw-r--r-- 1 postfix postdrop 17932 2006-08-29 16:52 postfix-files
-rwxr-xr-x 1 postfix postdrop 6836 2006-08-29 16:52 postfix-script
-rwxr-xr-x 1 postfix postdrop 22104 2006-08-29 16:52 post-install
drwxr-xr-x 2 postfix postdrop 4096 2006-08-29 16:52 sasl
-rw-r--r-- 1 postfix postdrop 26 2006-10-23 13:39 vdomains
-rw-r--r-- 1 postfix postdrop 12288 2006-10-26 21:49 vdomains.db
-rw-r--r-- 1 postfix postdrop 80 2006-10-26 21:51 vmaps
-rw-r--r-- 1 postfix postdrop 12288 2006-10-26 22:52 vmaps.db
Jeg har allerede prøvet et hav af guides i selskab med Google, men det er altid end i de samme fejl. Heriblandt har jeg bl.a. prøvet et par gange frem og tilbage mellem med forskellige MySQL opsætninger og diverse flade filer, og nu er jeg så vendt tilbage til filerne igen.
Tilsyneladende læser postfix alle filerne "korrekt", men det resulterer alligevel i ovenstående fejl.
Håber der er nogen, som kan hjælpe med problemet =)
/Lasse
