SMTP Server - dump email

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications SMTP Server - dump email
# 1  
Old 09-08-2011
SMTP Server - dump email

Background:
I am replicating a set of servers into a "bubble" for testing. Those systems cannot be aware they are in a "bubble" so I must replicate all external services. I have successfully replicated most of those services except SMTP. I would like to configure an SMTP server that collects all email and effectively dumps it so I can review it later.

Setup:
I have a Solaris 10u9 setup with "Sendmail 8.14.4+Sun/8.14.4" currently listening on port 25 (this was setup by default). It will accept email but it never stays in the queue because any mail to be relayed is bounced back. I would like to receive the email and either have it sit in a queue or preferably be able to dump it to a text file.

Question:
a) Can I setup sendmail to accept all mail and silently queue it?
b) Is there a debug SMTP daemon for Solaris that will serve this same purpose?

---------- Post updated at 05:02 PM ---------- Previous update was at 02:31 PM ----------

It is in the /etc/mail/sendmail.cf file. The default setting is

O DeliveryMode=background

Change it to "queue" and restart sendmail. Also check the "-q30m" setting.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

[Template] Send SMTP email with Visual Basic Script (vbs) from Command Prompt using CDO

This is a script in visual basic that basically sends an email from an existing account, in this case the example is provided for live.com. It uses CDO (Collaboration Data Objects). All you need to do is replace the fields with the proper information. The email is send from Command Prompt... (0 Replies)
Discussion started by: Tribe
0 Replies

2. Ubuntu

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? (3 Replies)
Discussion started by: sandeepcm
3 Replies

3. Shell Programming and Scripting

bash dump raw email body txt from Maildir

I'm setting up a cronjob that will hopefully dump the contents of a email delivered to Maildir/new/ to /home/user/raw.txt (and then delete that email) I could manually remove the bottom line of the raw email, then place the contents in the next line up in the /home/user/raw.txt, but it seems to... (5 Replies)
Discussion started by: unclecameron
5 Replies

4. AIX

Enable send email through smtp - exchange on AIX 6.1

Please help, i can not to send email from AIX 6.1 to outside network through STMP - Exchange. Any one can help ? (1 Reply)
Discussion started by: ichsan
1 Replies

5. UNIX for Dummies Questions & Answers

Dump eMail image to directory

Hello everyone! I'm new and very happy to be here! Trying to create a quick idea: I want to take images sent to an eMail address on my domain (pics@mywebsite.com), and copy them into a directory. There will then be a page that displays those images. How could I go about this? I'm a script... (6 Replies)
Discussion started by: Diesel.
6 Replies

6. 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

7. UNIX for Dummies Questions & Answers

telnet smtp and email in batch

I can do the following steps on my UNIX box interactively, but cannot send an email with a script. Can someone help? I need to send an email or some other notification when a cron job fails. telnet xx.yy.zz.ww 25 helo mail from: 123@123.com rcpt to: my@email.net data subject: email test... (1 Reply)
Discussion started by: ejaggers
1 Replies

8. Solaris

Shell script to send email alert for core dump

Friends, I am in search for a shell script that is capable of running as a cronjob and have to send out an email when ever there is a CORE DUMP. Please post the hints to achieve my goal. Thanks in advance. (1 Reply)
Discussion started by: rtatineni
1 Replies

9. UNIX for Dummies Questions & Answers

Send email using Exchange as SMTP

Hi. I have a Tru64 Unix V5.1 server that I would like to send emails using an exchange server we have on the same network as the smtp of this machine. What are the requirements/configuration that I need to do in order to make this possible. We are planning on emailing error messages and such from... (2 Replies)
Discussion started by: fidodido
2 Replies
Login or Register to Ask a Question
xcowsay(6)							   Games Manual 							xcowsay(6)

NAME
xcowsay - Display a cute cow and speech bubble. SYNOPSIS
xcowsay [-h] [-t time] [-r speed] [-d] [-f font] [text]... DESCRIPTION
Display a cow with a speech bubble containing some text. If text is specified it will be displayed in the bubble. Otherwise the text will be read from the standard input and displayed when end of file is encountered. The cow is displayed for either a fixed amount of time, or an amount of time calculated from the size of the text. Click on the cow to dis- miss it immediately. If xcowsay is started with --daemon it will fork away from the terminal and run in daemon mode. The daemon provides a DBus service uk.me.doof.Cowsay that responds to ShowCow requests. The daemon can queue up any number of requests and displays them in order. When xcowsay starts it checks to see if a daemon is running, and if it is, sends a ShowCow request and returns immediately. Otherwise xcowsay will block until the cow has disappeared. CONFIGURATION FILE
xcowsay reads a configuration file on startup. The configuration file can be stored in the XDG compliant location $XDG_CON- FIG_HOME/xcowsayrc (which will default to $HOME/.config/xcowsayrc) or in your home directory at $HOME/.xcowsayrc. If the --config=FILE command line option is passed FILE will be processed after your personal configuration file. The configuration file consists of 'option = value' pairs, one per line. The valid keys are given in the next section. For example, the following line sets display time to 10 seconds: display_time = 10000 The character '#' begins a comment which lasts until the end of the line. OPTIONS
Note that these options override any settings in the config file. -h, --help Display usage information. -t time, --time=time Display the cow for time seconds. This overrides any value set for reading_speed. The corresponding config file option is dis- play_time. -r speed, --reading-speed=speed Number of milliseconds to display the cow for each word in the input text. This is clamped to a minimum of min_display_time and a maximum of max_display_time. The defaults are 1 second and 30 seconds respectively. The corresponding config file option is read- ing_speed. -f font, --font=font Font for the speech bubble text. Accepts Pango font strings. The corresponding config file option is font. -d file, --dream=file Display an image instead of text in the cow's bubble. The dream_time config file option sets the numer of milliseconds to display the image for. The default is 10 seconds. --think Display a thought bubble instead of a speech bubble. --daemon Run xcowsay in daemon mode if DBus support has been enabled. See the description for more information. --cow-size=size Size of the cow image. Current choices are small, med, or large. The corresponding config file option is cow_size. --image=file Use a different image instead of the cow. The corresponding config file option is alt_image. --monitor=N Make the cow appear on monitor N. --at=X,Y Force that cow to appear at screen location (X,Y). The config file options are at_x and at_y. --bubble-at=X,Y Change position of bubble relative to where it would normally appear. This is most useful when combined with the alt_image option to create your own characters. The config file options are bubble_x and bubble_y. --debug Print messages about what xcowsay is doing. Useful for finding out why the daemon fails. -v, --version Print version information. AUTHOR
Written by Nick Gasson. REPORTING BUGS
Report all bugs to nick@nickg.me.uk The xcowsay home page is <http://www.doof.me.uk/xcowsay> SEE ALSO
cowsay(6) BUGS
There are a few issues I am aware of: The cow and speech bubble have jagged edges which would be improved by anti-aliasing. Very long strings will disappear off the right-hand side of the screen. This could be fixed e.g. by using Pango's word wrapping. xcowsay(6)