LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2010, 11:08 AM   #1
ManuMayer
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Rep: Reputation: 0
Question SMTP Server With PostFix


Hi, First I would like to specify that I have very few experience with Linux and that I've been asked to setup an SMTP server for a small company of about 50 employees. Everyone will access the smtp server from the inside of the network.

I'll start very general and if needed will go deeper in my interrogation of setuping the different elements of my server.
I'm doing this on the latest version of Debian, Linux Kernel 2.6.x

I've been recommended to use Postfix since it's not too hard to setup and do about everything we need.
I've been inspecting our old SMTP provider emails’ header and I also notice they were using it. So I know it's possible.
I've done a lot of testing, reinstalled Linux 2-3 times since a week and I can say that I understand the basic of it. However, everywhere I look at it, I see that Postfix does not seem to let me post Email in the outside world without any sort of Authentication like Cyrus for example. Like I said, our hold SMPT provider was using Postfix but we never had to authenticate our connection to it. Even more, I was able to impersonate about anyone inside or outside out network without any problems, which was useful for me to build engine to send email from NoReply@something.com for example via our different software, without having to setup the NoReply user. I even tried to joke around with a coworker and sent him an Email from BillGate@Microsoft.com.

Basically that's what I'm trying to reproduce. A Linux SMPT mail server with open policies, minimum of security which can only be access from inside our network but sending without restriction to any outside domain.

Could, anyone tries to list the different applications I would need in order to achieve this?
For example, is PostFix with Dovcote would do the trick?

Thanks for your help ?
 
Old 04-07-2010, 12:29 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You seem to have read a lot of incorrect things, or interpreted them incorrectly. Postfix is an SMTP server and nothing else. By default it will forward any non local email to a suitable SMTP server for that domain without any authentication at all.

Either way, your discussion doesn't really seem to relate to the functionality you're after, as you seem to want nothing more than the most basic of implementation. With most of the postfix default in place you can send it an email from any SMTP client and, network and external services like DNS willing, it'll get there. There's very little to actually do, possibly nothing - as things like the local domain and network can be assumed based on the basic server configuration details. you may still want to set the mynetworks variables and such though, in the config file which is *VERY* well commented and extremely clear.

Now you do go on to mention dovecot, but only by name, and you've not mentioned requiring any of the functionality it provides i.e. a pop3 / imap service. If you do indeed want local users to be able to pull emails form the same machine that postfix is running on then dovecot is certainly a great choice for doing that.
 
Old 04-07-2010, 12:57 PM   #3
ManuMayer
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for your answer,
between the time I wrote my initial post and the time you answered it, I did manage to setup (again) a really basic Postfix server with about no customization at all and surprisingly, it worked way better for my needs then most of all the other attempt I made following How-tos, tutorials, and guide I found on the internet since a week.

I'm not saying that everything is working, in fact, at this moment I only manage to test a send out from localhost telnet with an existing user, to my Gmail account, successfully.
It seems however that doing so with a mail client from another computer concludes with "Relay Access denied" error message. Still working on this, if you have any tips, I would be more then happy to hear about them.

Also, I've tried sending an email from Localhost via Telnet to another user (existing on Linux) with the same domain name, and it seems to have work but I never received it with my mail client (from my pop3 account). The only thing I can see right now is the difference in my mail.log. It seems that when Postfix is sending to a local user, it used the command Procmail -a "$EXTENSION" which it did not used when sending to Gmail. Is that making any sense ?
 
Old 04-07-2010, 01:44 PM   #4
ManuMayer
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, I managed to answer some of my own questions.
Basically, I had to play a little with the param MyNetwork and MyDestination in order to let a remote client within my network to send email. This thing fixed, I'm still confuse with the fact that Sending email to local users works, but never reach my Email inbox Via my pop3 server (not handled by me). So basically, for what I can understand, Postfix, when sending to local users, drops the mail into a mailbox folder instead of sending it to the MX address attached to my local domain.
Why and how to I fix this ?
 
Old 04-07-2010, 02:39 PM   #5
ManuMayer
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
It seems this post was pretty much one way, but at least for the sake of closing the thread completely, I just wanted to say that I solved my issue by removing my domain name from the "mydestination" parameter. It told to Postfix not to handle it as a local domain I guess but anyway it fixed my last remaining issues I had.
Now that I have a nice little SMTP server working, I'll start tweaking it a little for my needs.

Any remaining suggestion? SpamAssassin for example? Anything I should take into consideration before turning the switch on with the employees?

Thanks
 
Old 05-15-2010, 10:04 AM   #6
lonetree
LQ Newbie
 
Registered: Jan 2004
Posts: 16

Rep: Reputation: 0
Can you share your experience

Quote:
Originally Posted by ManuMayer View Post
It seems this post was pretty much one way, but at least for the sake of closing the thread completely, I just wanted to say that I solved my issue by removing my domain name from the "mydestination" parameter. It told to Postfix not to handle it as a local domain I guess but anyway it fixed my last remaining issues I had.
Now that I have a nice little SMTP server working, I'll start tweaking it a little for my needs.

Any remaining suggestion? SpamAssassin for example? Anything I should take into consideration before turning the switch on with the employees?

Thanks
Hi ManuMayer,

are you able to send mail to outside world with postfix? Can you share with me your experience?

thanks

regards
 
  


Reply

Tags
mail, smtp



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
SMTP authentication error and server could not connected in postfix server Ravinder Singh Thakur Linux - Server 1 11-02-2009 10:22 AM
Postfix SASL authentication for SMTP server CJhough Linux - Server 2 04-28-2009 01:47 PM
Postfix SMTP Server wprophet Linux - Server 1 12-09-2008 05:22 AM
Postfix authenticate on forward to smtp server LWillmann Linux - Server 2 12-16-2007 08:09 PM
Postfix Mail Connection to SMTP Server zeraia77 Linux - Networking 4 03-05-2006 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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