Red Antigua Logo slogan
Ads by Goooooogle
Search this site (by Google)
Menu
Home
About
Tools
Perl modules
Perl tutorials
C tutorials
Server configurations
UNIX on Windows
Misc. FreeBSD/UNIX
Redirect a web page
JavaScript
Virus list
Old stuff
Off topic

Tools    (top)
Your IP
Check a site for broken links
(W3C)

Perl modules    (top)
Tree::Numbered::Tools
(CPAN)
Perl tutorials    (top)
Perl modules
HTML::Template
CGI::Application
Mail::POP3Client
Mail::Send
MIME::Tools
Cookies with CGI::Application
Upload files with CGI::Application
Download files with CGI::Application
Redirect with CGI::Application
CPAN shell
Install DBD::mysql from the CPAN shell
Perl trim function
Validate an IP with Perl
Run suid Perl scripts under Apache
Perl taint mode
Perl date functions with Date::Calc

In Spanish
Curso de Perl

C tutorials    (top)
C - Introduction
C - Absolute beginner's Emacs
C - Examples for beginners
C - Makefile examples
C - Autotools examples
Server configurations    (top)
DNS
Apache
Apache Authentication and Access Control
mod_perl on FreeBSD
MySQL
MySQL add account
phpMyAdmin
Squid
DHCP

UNIX on Windows    (top)
Apache setup on Windows
MySQL setup on Windows
PHP setup on Windows
Perl setup on Windows
Emacs setup on Windows
UnxUtils
PuTTY
WinSCP
GIMP on Windows
MinGW - gcc on Windows
MSYS - make-in-a-shell on Windows
msysDTK - autotools on Windows
GDB for MinGW on Windows

Misc. FreeBSD/UNIX    (top)
CD and DVD creation on FreeBSD using 'k3b' on FreeBSD
'ipf' on FreeBSD
'pf' on FreeBSD
'su' on FreeBSD
Mount an ISO image under FreeBSD
Load the correct sound driver under FreeBSD without knowing what sound card you are using
Simultaneous sound channels on FreeBSD
Boot floppies for FreeBSD
Problems with old disks/controllers and the 'ata' driver
FreeBSD network stuff
DOS-to-UNIX file conversion
favicon.ico on UNIX
Emacs tips
Sendmail tips
GKrellm
Command Line Calculator
Save multimedia streams with 'mplayer'
xargs - solution to 'Argument list too long'
Process multiple images from the command line using 'ImageMagick'
Turn the system bell off under X Windows
Process each line in an input file from the command line (or in a shell script)
How to keep a program running in the background using 'nohup'
How to remove symbolic links in the current directory using 'find' and 'rm'
How to remove Emacs backup files in the current directory and all subdirectories using 'find' and 'rm'
How to execute .profile without logging in

Redirect a web page    (top)
Redirect to another web page
Apache redirect
C redirect
Perl redirect
PHP redirect
HTML redirect
JavaScript redirect

Javascript    (top)
Trim function
Login form
Register form
Popup window

Virus list    (top)
Latest viruses - Computer Virus HQ (external)
Latest 10 viruses - Sophos

Links    (top)
HTML and PHP Scripts - Html Web Template

Old stuff    (top)
POP3 server setup
About AnyMail
AnyMail downloads

Off topic    (top)
Personal links

Validated by
Valid HTML 4.01!
Valid CSS!
Powered by
apache.org
Sendmail tips
Sendmail tips        
Here you find some sendmail tips.
(Also check out www.sendmail.org for complete information on sendmail.)

In the examples listed below, the text in bold is what you type.
Be sure that DNS is configured properly before trying the examples.

Which sendmail version do I run:
To query a running server:
telnet that.host 25
Trying IP_addr...
Connected to that.host.
Escape character is '^]'.
220 that.host ESMTP Sendmail 8.12.1/8.12.1; Fri, 28 Dec 2001 11:39:34 -0800
QUIT
To query a binary on your local host:
% echo \$Z | /usr/sbin/sendmail -bt -d0
Version 8.12.1
.
.
.
Local delivery test:
Create the local accounts user1 and user2 and check if they can send mail to each other on this machine.

    # /usr/sbin/sendmail -bv user1@yourdomain.com
    user1@yourdomain.com... deliverable: mailer local, user user1
    # /usr/sbin/sendmail -bv user2@yourdomain.com
    user2@yourdomain.com... deliverable: mailer local, user user2

How to restart a busy sendmail server:
On a busy server, there may be lots of sendmail child processes.
Here is a quick'n'dirty way to kill'em'all before starting sendmail again:
kill -9 `ps ax|grep sendmail|cut -c0-8`
sendmail -bd q5m
How to send a mail using telnet:
Telnet to port 25 on the server to communicate interactively with the SMTP server
(not sendmail-specific, but works with any SMTP server).
Letters written in bold is what you type, the non-bold answers may differ depending the mail server software:
telnet host.domain.com 25
220 host.domain.com ESMTP Sendmail 8.12.1/8.12.1; Fri, 27 Oct 2001 08:56:37 -0800 (BST) 
helo domain.com 
250 host.domain.com Hello root@localhost, pleased to meet you 
mail from: user1@domain.com 
250 user1@domain.com... Sender ok 
rcpt to: user2@another.domain.com 
250 user2@another.domain.com... Recipient ok 
data 
354 Enter mail, end with "." on a line by itself 
Reply-To: user3@domain.com 
Subject: Test Message 

Hello, this is a test message 
. 
250 IAA13263 Message accepted for delivery 
Last modified: Sun May 2 10:25:23 CST 2004