On Mon, Jan 26, 2009 at 12:34 PM, Brian Evans - Postfix List < grkni...@scent-team.com> wrote:
> MountainX wrote: > > I am new to all this. > > > > My question: my DenyHosts report is sent out from nob...@localhost. How > do I > > change that? > > > > Hi, welcome to the list. > > For basic reference, please see: > http://www.postfix.org/BASIC_CONFIGURATION_README.html > http://www.postfix.org/SOHO_README.html This SOHO doc is helpful. I had not found it before, but I did read many other basic docs. (Didn't make a whole lot of progress in understanding due to a lack of background.) In particular, this looks relevant to me: /etc/postfix/main.cf <http://www.postfix.org/postconf.5.html>: # Optional: send mail as u...@domainname instead of u...@hostname. #myorigin <http://www.postfix.org/postconf.5.html#myorigin> = $mydomain <http://www.postfix.org/postconf.5.html#mydomain> Can I do that when using Postfix in a gmail-relay setup as explained here? http://behindmyscreen.newsvine.com/_news/2006/12/31/501615-configuringubuntu-postfix-and-gmail-in-101-easy-steps I have a Google apps domain: example.com. My gmail account is m...@example.com. I want my postfix server to be known as "example.com" not " somehost.example.com" so that my existing anti-spam settings will work. (I set it up according to this: How To Fight Spam Using Your Postfix Configuration <http://www.howtoforge.com/virtual_postfix_antispam>. I don't want to change that because I don't understand these settings very well.) So I want all emails from *all* users on the server where Postfix is running (root, me, nobody, etc.) to be sent via smtp (using my google account) to m...@example.com. (So the email is really sent from me to me, and it shows up both in my sent mail folder on google and my inbox.) > > Here's an example: > > > > From: DenyHosts <nob...@localhost> > > To: r...@localhost > > Subject: DenyHosts Report > > Date: Mon, 26 Jan 2009 10:46:03 -0500 > > > > How do I control/change the sending (and receiving) accounts? Thank you. > > > In case I didn't make it as clear as I needed to above, I want mail sent to r...@localhost to go to m...@example.com (a google apps domain with gmail account). I want all email from any Linux user account on this box to be sent to m...@example.com using my smtp relay settings (which use smtp.gmail.com with my m...@example.com gmail account). Does that make sense now? I would appreciate some examples of exactly what I should change in main.cf, generic, transport, aliases, or some other file. Thank you. > > > > Dave > > > > P.S. Background info: > > I'm using Google Apps/Domain and I set up Postfix according to this > guide: > > > http://behindmyscreen.newsvine.com/_news/2006/12/31/501615-configuringubuntu-postfix-and-gmail-in-101-easy-steps > > > > Then I applied some spam settings (without understanding a word of it) > from > > this guide: > > How To Fight Spam Using Your Postfix Configuration > > http://www.howtoforge.com/virtual_postfix_antispam > > > > And I have read a bunch of stuff, starting with this: > > https://help.ubuntu.com/community/Postfix > > > > ----- > > http://davestechshop.net blog > > > >