D
Deleted member 2077
Guest
Here is the situation, I have a handful of FreeBSD servers, most are behind firewalls/nat. I need to capture emails on the servers to monitor for problems.
I'm forwarding all root mail to -> my user@localhost (via /etc/mail/aliases). This works.
Now I would like to forward user@localhost to user@gmail. Basically dump everything there and then I'll sort it out later (I actually pull it down to another server and run procmail on it, but this step is working and not important).
Is there an easy way to do this? Like I said, it's quite a few servers and I'll be adding more, so don't want to have to manually fiddle the knobs on each. A generic solution that works for hosts without real domain names would be best.
I tried adding [email='user@gmail.com]'user@gmail.com[/email]' to the ~user/.forward but google is rejecting it:
I'm forwarding all root mail to -> my user@localhost (via /etc/mail/aliases). This works.
Now I would like to forward user@localhost to user@gmail. Basically dump everything there and then I'll sort it out later (I actually pull it down to another server and run procmail on it, but this step is working and not important).
Is there an easy way to do this? Like I said, it's quite a few servers and I'll be adding more, so don't want to have to manually fiddle the knobs on each. A generic solution that works for hosts without real domain names would be best.
I tried adding [email='user@gmail.com]'user@gmail.com[/email]' to the ~user/.forward but google is rejecting it:
Code:
Apr 12 22:23:07 fire3 sm-mta[84432]: q3D3N7SY084432: from=<myuser@fire3>, size=344, class=0, nrcpts=1, msgid=<201204130
323.q3D3N7N7084431@fire3>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Apr 12 22:23:07 fire3 sendmail[84431]: q3D3N7N7084431: to=root@localhost, ctladdr=myuser (1001/1001), delay=00:00:00, x
delay=00:00:00, mailer=relay, pri=30051, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q3D3N7SY084432 Message accepted for delivery)
Apr 12 22:23:19 fire3 sm-mta[84433]: q3D3N7SY084432: to=myuser@gmail.com, ctladdr=<myuser@fire3> (1001/1001), dela
y=00:00:12, xdelay=00:00:12, mailer=esmtp, pri=30566, relay=alt4.gmail-smtp-in.l.google.com. [173.194.65.26], dsn=4.0.0,
stat=Deferred: Connection refused by alt4.gmail-smtp-in.l.google.com.
Apr 12 22:33:29 fire3 sm-mta[84463]: q3D3N7SY084432: to=myuser@gmail.com, ctladdr=<myuser@fire3> (1001/1001), dela
y=00:10:22, xdelay=00:00:13, mailer=esmtp, pri=120566, relay=alt4.gmail-smtp-in.l.google.com. [173.194.65.27], dsn=4.0.0
, stat=Deferred: Connection refused by alt4.gmail-smtp-in.l.google.com.