Sorry, I'm still struggling to get anywhere with that.
Just to recap what I'm trying to achieve:
SERVER1 is a fully blown Postfix+Cyrus stack operating over the internet
and serving multiple domains.
SERVER2 is a small VM on a local LAN (same LAN as SERVER1) that runs
Bugzilla.
Both SERVERS use the same LAN domain myLANdomain.com.
I've installed Postfix on SERVER2 and configured it as below:
setting synchronous mail queue updates: false
setting myorigin
setting destinations: server2.myLANdomain.com, server2, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 192.168.0.0/24
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: ipv4
Now, all I want to achieve is to forward all emails to
[email protected] to a local user (unique name) bugzilla2
created on SERVER2.
Whatever email is delivered to bugzilla2 on SERVER2 locally should be
fed to the command defined in ~bugzilla2/.forward file
So my first objective, I guess, would be to allow that local user to
receive emails from outside somehow and be treated as local emails.
I feel like I'm missing something fundamental here...
Adam
On 21/05/2024 12:00, Wietse Venema via Postfix-users wrote:
Adam Weremczuk via Postfix-users:
Thank you Victor.
What's the easiest way to change:
bugzilla@mailserver:~$ cat ~/.forward
"|/vol/localhome/bugzilla/site/live/email_in.pl -vvv 2>/tmp/bz_emailin.log"
to something like:
[email protected]:/vol/localhome/bugzilla/site/live/email_in.pl
-vvv 2>/tmp/bz_emailin.log
There are multiple ways:
1 On the milserver achine:
In ~bugzilla/.forward
bugzilla@[email protected]
On the remoteserver, the ~bugzilla/.forward file with email_in.pl.
2) On the mailserver achine:
In /etc/aliases:
bugzilla: bugzilla@[email protected]
run the "newaliases" command after edirting the file.
On the remoteserver, the ~bugzilla/.forward file with email_in.pl.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]