LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2010, 03:50 PM   #1
Runge_Kutta
Member
 
Registered: Jul 2006
Location: H-town, TX
Distribution: SuSE10.1, Ubuntu 9.10, RHEL-4-WS, Fedora Core 6, CentOS 5.x, Fedora 13
Posts: 35

Rep: Reputation: 16
Postfix - send mail from one local computer to another local computer


What is the minimum configuration to postfix that I need to do (i.e. to its main.cf file) in order to have the following:

mail go from user1 on comp1 to user2 on comp2 on same lan

demonstration:

user1@comp1# Mail -v "" user2@comp2.somelan.com
hi there
[CONTROL-D]
....
resulting in new mail for user2 under comp2' /var/spool/mail folder

I've been through a bunch of mail server howtos, and they seem to want people to set up full blown domain mail servers with tls security (I even manage to set one up, with postfix and saslauthd running with no errors in log files
just that . . .
it seems to only handle local mail still and not mail from another computer on same network to it.

So, can anyone give me a hand?
 
Old 01-08-2010, 08:40 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Code:
postconf -e "relayhost = [comp2]"
/etc/rc.d/init.d/postfix reload
cheers

<edit> .. assuming comp1 can resolve comp2, else use the comp2 ip address </edit>

Last edited by kbp; 01-08-2010 at 08:41 PM.
 
Old 01-08-2010, 09:44 PM   #3
Runge_Kutta
Member
 
Registered: Jul 2006
Location: H-town, TX
Distribution: SuSE10.1, Ubuntu 9.10, RHEL-4-WS, Fedora Core 6, CentOS 5.x, Fedora 13
Posts: 35

Original Poster
Rep: Reputation: 16
no joy - seems like it queues message, and keeps sending to local accounts' emails instead of other computer

Last edited by Runge_Kutta; 01-08-2010 at 09:49 PM.
 
Old 01-09-2010, 07:08 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try a restart instead of a reload maybe...
 
  


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
[SOLVED] Postfix - I can send mail from my computer; but others can't send to me... djuhl30 Linux - Server 8 10-12-2009 02:34 PM
Postfix cant send mail in local or any outer domain vikki Linux - Server 4 07-22-2009 03:40 PM
postfix local users send mail restriction y_zl Linux - Security 3 01-04-2009 11:04 PM
Postfix: Do not allow local users to send mail Termina Linux - Server 1 03-22-2007 05:15 PM
send a test mail from shell using local installed postfix ? cccc Linux - General 3 06-26-2005 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 PM.

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