LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2004, 07:52 AM   #1
webwiznz
LQ Newbie
 
Registered: May 2004
Location: Auckland, NZ
Distribution: Debian Etch
Posts: 19

Rep: Reputation: 0
postfix config as null client


Im just setting up send only mail services on a dsl connected box with no offical DNS. All i need is for php cgis to be able to send mail, fullstop. ie a null client scenario.

Having worked my way through :
http://www.postfix.org/faq.html#null_client
http://www.postfix.org/STANDARD_CONF...ml#null_client

it seems that my situation is a combination of "null client" and "Postfix on hosts without a real hostname"

the only config ive got anywhere near working is this:

myhostname = testserver.local.net
mydomain = local.net
myorigin = myisp.net
relayhost = [mail.myisp.net]

the problem is that the above smtp relay, like many, baulks at unresolvable names like testserver.local.net. so then i tried the fantasy /canonical approach

myhostname = server.domain.invalid
mydomain = domain.invalid
myorigin = $mydomain
relayhost = $mydomain
canonical_maps = hash:/etc/postfix/canonical
inet_interfaces = 127.0.0.1
local_transport = error:local delivery is disabled

/etc/postfix/canonical:

root myemail@myisp.net
apache myemail@myisp.net
www myemail@myisp.net

This doesnt work at all. too many changes to know which is screwing it up. The probelm with the null client example at the postfix site is that it assumes another mail server on the site somewhere. Leaving relayhost blank is supposed to send mail direct, but that doesnt work either.

This situation must apply to most mandrake workstation users. Apreciate a working main.cf script in toto if you have it for this scenario.

P
 
  


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
Postfix won't accept mail from ONE client dontaylor2 Linux - Networking 5 11-10-2005 12:10 PM
fstab-sync: error: libhal_ctx_init_direct: (null): (null) rpz Linux - Hardware 1 11-01-2005 05:42 AM
checking for null values from config file? zerointeger Programming 1 10-12-2005 11:29 AM
Postfix config problem Rarrum Linux - Networking 2 01-08-2005 07:48 PM
postfix smtp client netmaniac Linux - Networking 0 07-31-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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