LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-14-2008, 02:23 PM   #1
m1ckey78
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
Postfix: How to configure postfix to process mail from another host


Hey there.

I have an Ubuntu 7.10 server with postfix on it.
I installed postfix primarily to send mail trought the php script on this server, wich act primarily as a webserver.

Postifx was installed, and configured with the default settings.

I can send mail to anyone trought the php mail function without any problem. Now what we would like to do, is send email from another host. This host will use the postfix server as its SMTP server, and we would like to mail to be processed correctly, just as the server do when I send it locally.

I am not a postfix guy, so I dont know much about it, if one of you can give me a solution, I would really appreciate it.

Thanks




Error that postfix gives when the other host try to send the mail:



Oct 14 14:41:42 cnqweb postfix/smtpd[16248]: connect from unknown[x.20.0.205]
Oct 14 14:41:42 cnqweb postfix/smtpd[16248]: disconnect from unknown[x.20.0.205]
Oct 14 14:41:42 cnqweb postfix/smtpd[16248]: connect from unknown[x.20.0.205]
Oct 14 14:41:42 cnqweb postfix/smtpd[16248]: NOQUEUE: reject: RCPT from unknown[x.20.0.205]: 550 5.1.1 <x@cablevision.qc.ca>: Recipient address rejected: User unknown in local recipient table; from=<y@cablevision.qc.ca> to=<z@cablevision.qc.ca> proto=ESMTP helo=<XXX>
Oct 14 14:41:42 cnqweb postfix/smtpd[16248]: disconnect from unknown[x.20.0.205]


Here is the important stuff in my DEFAULT postfix installation:

myhostname = cnqweb.cablevision.qc.ca
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = cnqweb.cablevision.qc.ca, localhost.cablevision.qc.ca,localhost
relayhost =
mynetworks = 127.0.0.0/8, x.x.0.2, x.x.0.6, x.x.0.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
 
Old 10-15-2008, 07:11 AM   #2
m1ckey78
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
bump anyone, im sure someone have an answer to this!!
thanks
 
Old 10-15-2008, 10:43 AM   #3
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
You need to allow the postfix server to relay mail for the other host. The simply way is to add the IP address of the other server to the mynetworks variable.

Carl.
 
Old 10-15-2008, 10:59 AM   #4
m1ckey78
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Cool it works.

Thanks a lot!!
 
  


Reply

Tags
postfix


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 not sending mail - Host MX records not found? kayasaman Linux - Server 8 01-20-2012 11:47 AM
Postfix allow relay to a mail host within lan Niceman2005 Linux - Software 2 06-20-2007 01:43 AM
postfix wont process mail through procmail Red Squirrel Linux - Software 2 07-02-2006 12:49 PM
Sending mail via Postfix smtpd through remote host requiring authentication Saffsd Linux - Networking 0 01-26-2004 05:05 AM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration