LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-27-2011, 01:19 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
setting up postfix for outgoing mail


I'm setting up a server and trying to make it *very* secure. Before I configured my web stack, I was about to install some security packages, Tiger and Samhain, but these packages wanted to install sendmail so that they can send outgoing notifications. From the reading I've been doing, I believe I want postfix instead of sendmail. It is my (perhaps mistaken) belief that installing postfix first will prevent them from installing this sendmail I do not want.

I want to install postfix with the following goals in mind:
* let PHP scripts send mail using the mail function.
* various system notification functions (cron, etc.) will be able to send their emails
* emails destined for root@localhost will be redirected to admin@mydomain.com
* let tiger and/or samhain send their notification emails
* NO INCOMING OR LOCAL MAIL IS PERMITTED. Because mail for my domain is handled by google apps, nobody will be checking mail on this server. Also, this server has very limited disk space. It is therefore very important that we don't have mail accumulating in boxes that will never be checked.
* no unnecessary ports, services, or cron jobs are running.

I've been reading a variety of pages that describe postfix setup on Ubuntu but these articles are imprecise, incomplete, and describe installation of things I don't want like POP/IMAP/etc.

There's also one final wrinkle. I will be setting up postfix to send via Amazon SES.

If anyone can help me sort this, I'd very much like any tips or suggestions you may have.
 
Old 07-27-2011, 04:58 PM   #2
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
I've been looking into this and, unless I'm mistaken, this is what I should be doing:
http://www.postfix.org/STANDARD_CONF...ml#null_client

If anyone could corroborate that, I'd appreciate it.

I'm also wondering if this should also be done so that root@localhost actually gets sent to root@mydomain.com:
http://www.postfix.org/STANDARD_CONF...E.html#fantasy
 
Old 07-28-2011, 09:58 AM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
I installed postfix and tweaked the settings according to those links. What I'm having trouble with now is connecting postfix to Amazon SES. I seem to be missing some perl module:
Code:
user@host:/opt/third-party/amazon$ sudo ./ses-verify-email-address.pl -e https://email.us-east-1.amazonaws.com -k /opt/third-party/amazon/aws-credentials -v address@mydomain.com
Can't locate object method "ssl_opts" via package "LWP::UserAgent" at SES.pm line 250.
 
Old 07-28-2011, 12:47 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Alrighty. This has been a journey so far. If anyone at all is interested, there's a lot you have to do to get Amazon SES working:
* download Amazon SES scripts
* read README file that comes with SES scripts that has install instructions
* sort out dependencies of perl modules
* install all kinds of stuff

And now I've got the Amazon scripts working on my machine, but postfix is having an include path problem:
Code:
Jul 28 16:30:26 ip-10-100-237-252 postfix/pipe15859: 216D0720E9: to=<user@domain.com>, relay=aws-email, delay=0.2, delays=0/0/0/0.19, dsn=5.3.0, status=bounced (Command died with status 2: "/opt/third-party/amazon/ses-send-email.pl". Command output: Can't locate SES.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/third-party/amazon/ses-send-email.pl line 27. BEGIN failed--compilation aborted at /opt/third-party/amazon/ses-send-email.pl line 27. )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: Disable outgoing mail dvishloff Linux - Server 1 05-13-2009 02:11 PM
Postfix - Configuration to Forward Outgoing Mail Elsewhere Ruler2112 Linux - Server 7 09-15-2008 04:55 PM
Postfix Relay access denied outgoing mail alitrix Linux - Server 2 06-14-2008 03:38 PM
Outgoing Only mail server using Postfix opnsrc Linux - Networking 0 06-15-2006 10:37 AM
postfix outgoing mail fail from outlook express importboy03 Linux - Networking 0 02-20-2003 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration