LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-28-2008, 08:45 PM   #1
PCSpectra
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Postfix on my development server


I installed Postfix on my debian development machine. Easy Peasy.

This dev box sits behind a NAT router and even though postfix is installed, when I try and send email using 'mail' and then at the mail queue with mailq I see 'connection has failed'.

I read this article several times:

http://www.akadia.com/services/postfix_mta.html

I essentially just want to send email to a remote email server using sendmail. I don't need SMTP daemon running as my server should never relay or accept incoming emails. I construct emails using PHP and just want to pass them to sendmail binary for immediate sending (or queueing).

Unlike when I used mail or tried to send an email using telent and SMTP -- when I follwed the example in the above article and used sendmail -- I received no error but no email either.

How do I test or determine what is going wrong with the Postfix sendmail???

Last edited by PCSpectra; 03-28-2008 at 09:40 PM.
 
Old 03-28-2008, 09:46 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think you are a little confused on the sendmail issue. Postfix uses a "sendmail" command for compatibility with older applications that were expecting the proper Sendmail to be installed. As far as I'm aware, this uses smtp anyway.

I'm sure you can restrict Postfix to local mail only (ie no smtp), but not really an issue. Postfix by default shouldn't be open, so make sure you have your smtpd_recipient_restrictions correct (the default should be OK - permit_mynetworks, reject_unauth_destination) and here's the key - make sure your mynetworks is correct. Assuming you are on a private IP range, and you router/firewall isn't letting spoofed private IP's through, then you should be OK, but explain your network structure if you aren't sure. Read the docs at postfix.org on the restrictions shown above

On the router, it's one thing to open port 25, but note that you will need to forward it from the external IP to your server on your router somehow. Ho depends on the model of course.


Hope that helps

Last edited by billymayday; 03-28-2008 at 09:47 PM.
 
  


Reply



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
Tcp client server development ptlchetan Programming 4 09-15-2006 04:49 AM
Relay Server<-> GatewayServer<->filtering server: PostFix, amavis,spamassassin, cyrus admore Linux - General 0 11-02-2004 08:46 AM
Linux Web Development Server, What Distro? Gear_freak2000 Linux - General 3 07-07-2004 03:06 AM
Modem server development... HELP!?!? gilboa Programming 1 06-22-2003 08:45 AM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM

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

All times are GMT -5. The time now is 08:29 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