On Fri, Apr 21, 2023 at 02:14:09PM +1000, Piers Rowan wrote:
> --/etc/postfix/main.cf:
> virtual_alias_maps = hash:/etc/postfix/virtual
> virtual_alias_domains = ngungee.com inertiagh.com.au sunnycoastjobs.com
>
>
> /etc/postfix/virtual:
>
> # IGH Info Account
> [email protected]    info_ingh
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> After making changes (via Webmin) nothing happens. After running:
>
> postmap /etc/postfix/virtual
>
> Nothing happens.
>
> The messages still end up in a different mail box to info_ingh
>
> Any ideas on this?

You need a line in /etc/postfix/virtual with just the domain on the LHS
and anything at all on the RHS (I use the word "VIRTUAL", but you can use
anything).

e.g.

    inertiagh.com.au    VIRTUAL


Run `man 5 virtual` for full details about the virtual file format.

In part, it says:

  | The "virtual-alias.domain anything" entry is required for a virtual alias
  | domain. Without this entry, mail is rejected with "relay access denied",
  | or bounces with "mail loops back to myself".



BTW, the RHS of the actual `user@domain` entries in a virtual_alias map is an
email address (either a local address or with a fully qualified domain name),
not a file.  That means if you want to map it directly to a file, you'll also
need an entry in /etc/aliases:

    info_ingo /path/to/filename

mail for [email protected] would be received by postfix, delivered to
local address info_ingh, which happens to be an alias with a file path to an
mbox file (the pathname has to be writable by postfix).


Alternatively, send all (or most) mail for that domain to a particular user
with a .procmailrc file to save incoming mail to mbox files or maildir
directories according to the rules in that file (or similar rules-based
local-delivery agent).



craig

--
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to