Re: Postfix + Cyrus + Catchall Addreses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


I've set up postfix and cyrus properly (I think) and it's working fine
for valid users.

In my main.cf
virtual_mailbox_domains = virtual.domain1.com, virtual.domain2.com
virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
virtual_mailbox_maps = hash:/etc/postfix/virtual

$ cat /etc/postfix/virtual
@virtual.domain1.com		anything

is "anything" a separate virtual user account?


The above is "supposed" to function as a catchall address. (I'm using that as opposed to actually listing down _all_ the valid addreses
in my make-believe domain.)

But only if you created a virtual account called "anything".


Valid maiboxes in cyrus are:
user1
user2

If I send an email to either user1 or user2, it will work. Cyrus will
accept the message. But if I send a message to user100(which does not
exist), it gets rejected. (this is not what I want now, since I want
catchall addresses)

Which user should get these mails? If it's not a specially created user (e.g. postmaster) than it must be user1 oder user2. In this case, do not use virtual_mailbox_maps but virtual_alias_maps:


In main.cf:	virtual_alias_maps = hash:/etc/postfix/virtualaliases

In /etc/postfix/virtualaliases:

@virtual.domain1.com	user1.virtual.domain1.com


And don't forget to build the databases with the postmap command.



If I replace @virtual.domain1.com anything
with
[1] @virtual.domain1.com user1@xxxxxxxxxxxxxxxxxxx
or
[2] user1@xxxxxxxxxxxxxxxxxxx


in [1], nothing is supposed to change, since virtual_mailbox_maps
will ignore the RHS value.
in [2], only emails to user1 will be accepted. User2's email will get
rejected.

That's because virtual_mailbox_maps is not for aliases, only for (non-system) mailbox-users.



-volker


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux