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 02-27-2019, 07:22 AM   #1
chickenjoy
Member
 
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239

Rep: Reputation: 30
I need a simple SMTP server to run and accept emails and store the messages


Hi Can anyone point me to the right direction on how to configure postfix to do what i want?

I need a simple SMTP server to run and accept emails and store the messages in .EML format in one location. Nothing else; no emails will be sent out. and it will only receive emails over SMTP port 25 over a LAN. there will only be one email address and any email address will do.

most of the guides i see also instructs to install squirrelmail (and apache) which I don't need. Just need the email dumped into a folder in .EML format.

Appreciate any help. thanks
 
Old 02-27-2019, 07:30 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
All of the traditional MTA can be set for that kind of purpose. Sendmail would work. I have set up postfix for filtering and organizing mail, but never for something like what you want. I have to ask: are you sure you are using the right tool for the job?
 
Old 02-27-2019, 07:55 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by chickenjoy View Post
Hi Can anyone point me to the right direction on how to configure postfix to do what i want?

I need a simple SMTP server to run and accept emails and store the messages in .EML format in one location. Nothing else; no emails will be sent out. and it will only receive emails over SMTP port 25 over a LAN. there will only be one email address and any email address will do.
Ok, so the Postfix documentation covers how to do a simple set-up. Many, MANY setup guides on how to do basic Postfix configuration:
https://help.ubuntu.com/community/Po...asicSetupHowto
http://www.postfix.org/BASIC_CONFIGURATION_README.html
Quote:
most of the guides i see also instructs to install squirrelmail (and apache) which I don't need. Just need the email dumped into a folder in .EML format.
Well, if you don't need squirrelmail or apache, then just don't install them??? Seems simple enough. You don't say what version/distro of Linux you're using, or what your goal is in having .EML format, versus maildir, but you can use procmail to get messages into .EML.

If you want this only for a specific user, create that user a ~/.procmailrc file, containing:
Code:
DEFAULT=/some/path/to/eml/filestorage/
And add to /etc/postfix/main.cf
Code:
mailbox_command = /path/to/procmail
Restart postfix. That's it.
 
  


Reply

Tags
postfix, 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
Configure postfix to only accept emails for internal addresses from local senders? XXLRay Linux - Server 0 11-18-2015 01:44 PM
SMTP newbie queries: #< #5.3.5 SMTP; 553 5.3.5 system config error> #SMTP# LYC Linux - Newbie 0 12-04-2014 12:45 AM
How i use my local smtp server and smtp server of my domain registrar simultaniosly Sanjeesh Linux - Networking 5 11-29-2008 05:07 AM
-P ACCEPT vs -j ACCEPT Wynd Linux - Networking 3 05-30-2006 08:42 AM

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

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