Any way we can create an SMTP server and use any scripting language to read emails from that server


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Any way we can create an SMTP server and use any scripting language to read emails from that server
# 1  
Old 05-14-2012
Java Any way we can create an SMTP server and use any scripting language to read emails from that server

Is there any way to create an SMTP mail server will all granular permissions to it so that I can read emails which that server receives through any scripting language and also reply from the same server automatically?
# 2  
Old 05-16-2012
Several ways to do this, depending really on what you need and which postfix server you are using. Can you provide more info? Will the server be deliverying "Regular" mail into a Mailbox as well as for automatic replies? Which SMTP server can you use? Which OS? Do you want the reply to be automatic like a "vacation" setting, or as in an autoresponder for a mailing list?
This User Gave Thanks to otheus For This Post:
# 3  
Old 05-16-2012
Thanks for the response.
What do you mean by a postfix server? I want to use a normal SMTP server which can be used for both in-bound and out-bound mail delivery. All the systems will be running in Linux. In my case i am using Ubuntu 11.10.
It will be delivering regular email as well as automatic replies like 'vacation'. Not as an autoresponder. Can I control the automatic replies?
# 4  
Old 05-16-2012
Your question is still to general for these forums, but I will give you a general answer and maybe that will point you in the right direction. But I think maybe you need to find an expert that will consult with you for your specific needs.

Postfix is one of 3 major, free implementations of SMTP for UNIX. The others are sendmail and qmail. Of these, postfix has the best combination of flexibility and ease-of-configuration. All are available for Linux.

Postfix and sendmail are typically thought of as "MTAs" -- Mail Transport Agents. SMTP is a protocol designed for MTAs to talk with each other. (LMTP is another such protocol.) What you are asking for is a function typically provided by "MDAs" -- Mail Delivery Agents. These programs are delegated the responsibility of putting the mail into the right mailbox for the end-user. These programs typically do not interact with other systems or other computers -- only the system that the mail has been transported to (via the MTAs). Examples of such programs include
  • binmail
  • procmail
  • deliver
Take a look at the short Wikipedia article for these. You can start reading here: Mail delivery agent - Wikipedia, the free encyclopedia
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

SMTP Server Configuration

Hello list, I want to be able to send email directly from my linux box. I have both a CentOS and Debian installation. I am by no means an expert when it comes to all of the SMTP servers. I have been testing different configs by installing and uninstalling sendmail, postfix, and exim4. ... (2 Replies)
Discussion started by: landossa
2 Replies

2. UNIX for Dummies Questions & Answers

Emails sent from Linux server are rejected by recipient

Hello i have this longterm issue which im unable to solve, i think this is quite simple issue, i hope you may know the cause It is on CentOS Redhat server with qmail installed. # service qmail status # service qmail start Starting Qmail: # ps aux | grep mail qmails 1688 0.0 0.0 ... (1 Reply)
Discussion started by: postcd
1 Replies

3. Shell Programming and Scripting

How to create a file in remote server from local server?

hi, can anyone tell me how can i store the names of a file that are in remote server to a file and then get the file that contains the name in local server? there is a remote server where 5 files are present , say a.txt b.txt c.txt d.txt e.txt i want to write a script in my local... (4 Replies)
Discussion started by: Little
4 Replies

4. Shell Programming and Scripting

Samba server with notification emails

I'm creating a ubuntu samba server that sends out email notifications when a file a new file is created in the monitored directory. Currently im using inotifywait to monitor a directory and send out a email notification. Inotify wait works great but it gets triggered whenever any file including... (2 Replies)
Discussion started by: binary-ninja
2 Replies

5. Shell Programming and Scripting

How to Read File multi server from 1 server.

How to Read File multi server from 1 server. With Shell script. Server1 (is host) Server2 Server3 Server4 All server : user & password same. : Path of file it same. : user command grep "123456" filename*.log Gide line Pls. (1 Reply)
Discussion started by: ooilinlove
1 Replies

6. Solaris

How to check the number of emails sent out from the Solaris server

Our solaris are configured to send out email and i would like to know the number of emails sent out from the solaris server. Anyone know can this be done? Thanks (1 Reply)
Discussion started by: sirius20d
1 Replies

7. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

8. UNIX for Advanced & Expert Users

Routing Emails, Sun One Messaging Server

Hello, i have Sun one Messaging Server 6.3 Up and running, i want to route emails that are destined to a certain email address, let's say test@mydomain.com through the tcp_local channel for example, to another email, and not allowing test@mydomain.com to receive them. So in short, i want... (0 Replies)
Discussion started by: lemonshare
0 Replies

9. Shell Programming and Scripting

Find and Extract all emails from my server

My linux version is: Linux version 2.6.9-89.0.9.ELsmp (gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)) My problem is simple (lol) I need find and extract all e-mail from my server. I know how to extract the e-mail from a text file, the problem is: Where to find the e-mails? How to find all... (2 Replies)
Discussion started by: mauricio_yan
2 Replies

10. UNIX for Dummies Questions & Answers

Sending Outgoing Emails from Unix Server

the server i have here is a Ubuntu server. it has nagios on it. after setting up nagios and having it work as it should, i realized at the very end of all my work that obviously nagios will also need to send out email alerts to a set of email addresses that it has in its database. my problem... (1 Reply)
Discussion started by: SkySmart
1 Replies
Login or Register to Ask a Question