Discussion:
Catchall for postmaster/hostmaster/abuse
Jan Kowalsky
2018-06-12 16:27:01 UTC
Permalink
Hi all,

we have a log of domains - not in each there is an hostmaster/postmaster
e.g. as mail or alias address defined.

We would like to get all mails for postmaster if there is no other
postmaster defined.

While we could achive this with a virtual_alias_maps.cf as the last one
in main.cf we have to


# all domains, without own postmaster:
***@example.org ***@ourdomain.org
...

but it would be nice not to have to add each single domain but have a
regex like this:

# Catchall to comply with RFC standards
^postmaster@/ ***@ourdomain.org


But then also all outgoing mails to any ***@otherdomain.com goes
also to ***@ourdomain.org

Any idea?

Thanks and regards
Jan
Gelpi Andrea
2018-06-13 13:13:18 UTC
Permalink
Post by Jan Kowalsky
Hi all,
we have a log of domains - not in each there is an hostmaster/postmaster
e.g. as mail or alias address defined.
We would like to get all mails for postmaster if there is no other
postmaster defined.
While we could achive this with a virtual_alias_maps.cf as the last one
in main.cf we have to
...
but it would be nice not to have to add each single domain but have a
# Catchall to comply with RFC standards
Any idea?
Thanks and regards
Jan
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
If I'm not wrong it's already as you asked.
All I've done is to add a redirect in /etc/alias, so that mail to
postmaster/abuse and so on are redirect to a real mail of one domain.

root: ***@ourdomain.com
--
Gelpi ing. Andrea
--------------------------------------------------------------
It took the computing power of three C-64s to fly to the Moon.
It takes a 486 to run Windows 95. Something is wrong here.
--------------------------------------------------------------
Jan Kowalsky
2018-06-13 20:33:50 UTC
Permalink
Hi Andrea,

thanks for your answer!
Post by Gelpi Andrea
Post by Jan Kowalsky
# Catchall to comply with RFC standards
If I'm not wrong it's already as you asked.
All I've done is to add a redirect in /etc/alias, so that mail to
postmaster/abuse and so on are redirect to a real mail of one domain.
but this only works for your single domain, doesn't it? Not for all your
domains in a multidomain environment. Or do I miss something?

Regards Jan
Skale, Franz
2018-06-14 05:30:48 UTC
Permalink
Hi Jan,
i have a multidomain-setup and can therefore give you some advise.
First of all you have to create one postmaster in the primary domain.
I chose a mail enabled posix user typ because i want system mails
(apt-listchanges etc. etc.) to also be delivered. (Of course You have to
configure pam-ldap and nscd for that type)
Then i added aliases like ***@domain.com, ***@domain.com,
***@domain.com etc.
kolab chooses that email address for last resort (if it don't find
matching alias in the destination domain).
Add the primary.address to /etc/aliases:
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
clamav: root
root: ***@domain.com

Run: newaliases.

Done

Rgds.
Franz
Post by Jan Kowalsky
Hi Andrea,
thanks for your answer!
Post by Gelpi Andrea
Post by Jan Kowalsky
# Catchall to comply with RFC standards
If I'm not wrong it's already as you asked.
All I've done is to add a redirect in /etc/alias, so that mail to
postmaster/abuse and so on are redirect to a real mail of one domain.
but this only works for your single domain, doesn't it? Not for all your
domains in a multidomain environment. Or do I miss something?
Regards Jan
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Gelpi Andrea
2018-06-14 07:38:12 UTC
Permalink
Post by Jan Kowalsky
Hi Andrea,
thanks for your answer!
Post by Gelpi Andrea
Post by Jan Kowalsky
# Catchall to comply with RFC standards
If I'm not wrong it's already as you asked.
All I've done is to add a redirect in /etc/alias, so that mail to
postmaster/abuse and so on are redirect to a real mail of one domain.
but this only works for your single domain, doesn't it? Not for all your
domains in a multidomain environment. Or do I miss something?
Regards Jan
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
I have a multidomain system and /etc/aliases is been used for every
destination not defined in any domain.
I use /etc/aliases to send every mail for any domains to one normal
recipient.
I don't know if it is the same in an alias multidomin.
--
Gelpi ing. Andrea
--------------------------------------------------------------
It took the computing power of three C-64s to fly to the Moon.
It takes a 486 to run Windows 95. Something is wrong here.
--------------------------------------------------------------
Jan Kowalsky
2018-06-14 19:27:20 UTC
Permalink
Hi Franz, hi Andrea,

thanks for advice. But why simple if it's possible to do it more
complicated ;-)

regards
Jan
Post by Gelpi Andrea
I have a multidomain system and /etc/aliases is been used for every
destination not defined in any domain.
I use /etc/aliases to send every mail for any domains to one normal
recipient.
I don't know if it is the same in an alias multidomin.
Loading...