02-20-2001
I have a utility that opens a telnet session and allows me to execute commands through a script. The utility allows me to output to a text file whatever is outputted to screen.
This utility runs from a DOS prompt in Windows 95/98, NT or 2000. How can I mail text file this to a certain user.
I telnetted to port 25 of the mail server ( exchange server) and tried to manipulate the file. But the commands only seem to allow for emailing a string of data.
e.g. telnet exchange.ttc.com
helo user
mail from:root@ttc.com
rcpt to
eterj@ttc.com
data
This is the string that I am sending
.
Note that after the string, one must type <CR>.<CR>
Does anyone know if sending a file instead of a string is possible ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am working on UNIX (Solaris28). I would like to send an email in which the body will be in html format and, in the same mail, a xls file has to be attached.
I have tried this: the file is correctly attached but the body comes as html source and not formatted. If I do not attach the... (4 Replies)
Discussion started by: stefan.yu
4 Replies
2. Shell Programming and Scripting
Hello,
I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail.
How can I use the following awk statement in a perl script?
grep UNIXadmins /root/mail.conf | awk '{ print $2}'
and use the output to send a e-mail.
Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies
3. Shell Programming and Scripting
Hi,
Is it possible to send mail from my HP-Ux system with images, rich text? I would like to program in such a way that I have my company's logo(.jpg) image attached in the mail geeting triggered. I would like to send a rich text/HTML email instead of plain text mail to the recipients. Is it... (2 Replies)
Discussion started by: rythym05
2 Replies
4. Shell Programming and Scripting
I have a list of mail ids in text file and want a ksh script that reads this text file and sends a mail to all mail ids with same subject line and content.
I am using UX-HP machine and KSH.
Thanks for help in advance! (5 Replies)
Discussion started by: Sriranga
5 Replies
5. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
6. Shell Programming and Scripting
Hi,
I want to send color text as body of mail with multiple attachments.How to do this?I used sendmailcommand but this command fails for multiple attachments.Give me some solution on this.
:wall: (0 Replies)
Discussion started by: AhmedLakadkutta
0 Replies
7. Shell Programming and Scripting
Hi I have the following 'atd' batch script to send mail to a windows (outlook) system:
....
....
LESSOPEN=\|/usr/bin/lesspipe.sh\ %s; export LESSOPEN
G_BROKEN_FILENAMES=1; export G_BROKEN_FILENAMES
cd /root/bin || {
echo 'Execution directory inaccessible' >&2
exit 1
}... (3 Replies)
Discussion started by: AdminLew
3 Replies
8. UNIX for Beginners Questions & Answers
Hello,
Somebody can help me to develop a script for the below requirement
I have a 3 files in a directory which was dynamically changed everyday basis. I need a script to fetch the 1pattern of strings in each file. if the three matching pattern is same send a mail with subject as success else... (1 Reply)
Discussion started by: MATHANKUMAR
1 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I have a working script as below.
echo "Files loaded with $(cat /var/tmp/script.X1.out)" | mail -s "Files loaded with return code" mailid
This script takes the output from script.X1.out file and appends the text "Files loaded with return code" and sends the email. Now what I want... (5 Replies)
Discussion started by: midhun3108
5 Replies
10. UNIX for Beginners Questions & Answers
I have a sample script here I want to bold the word BOLD in the text and send through email. Tried several ways but not seems to working.
BODY="Hello. I want to BOLD this"
{
echo "From: from@gmail.com"
echo "To: to@gmail.com"
echo "Subject: Texting"
... (1 Reply)
Discussion started by: lpoolfc
1 Replies
LEARN ABOUT DEBIAN
saslfinger
saslfinger(1) General Commands Manual saslfinger(1)
NAME
saslfinger - A utility to collect SMTP AUTH relevant configuration for Postfix
SYNOPSIS
saslfinger [-chs]
DESCRIPTION
saslfinger is a utility to collect SMTP AUTH relevant configuration for Postfix. Depending on how you run it, it will search for informa-
tion on server-side or client-side SMTP AUTH configuration settings in Postfix and Cyrus SASL.
OPTIONS
-c If you run saslfinger with the option -c it will collect data required for client-side SMTP AUTH. Client-side SMTP AUTH is when
Postfix smtp daemon uses SMTP AUTH to authenticate itself with a remote mail server that offers SMTP AUTH.
saslfinger will try to telnet to all hosts listed in smtp_sasl_password_maps, if it may read smtp_sasl_password_maps
The telnet test verifies your host is able to reach the remote servers and shows what AUTH mechanisms they offer - in some cases
this is required to debug client-side SMTP AUTH.
Important: By default smtp_sasl_password_maps must be read-only to root, since these maps contain the usernames and passwords to
authenticate. If you run saslfinger as root access will be no problem, but saslfinger will fail if you lack the permissions to
access smtp_sasl_password_maps.
If you want to run the telnet test, but don't want to run saslfinger as root change permissions of smtp_sasl_password_maps so that
the user running saslfinger may access smtp_sasl_password_maps while you debug.
*note: You don't need to worry about saslfinger doing anything with the username or password stored next to the remote hosts in your
smtp_sasl_password_maps; saslfinger completely ignores these informations!
-h If you run saslfinger with the option -h it will print a little help message that tells you about the options you can use.
-s If you run saslfinger with the option -s it will collect data required for server-side SMTP AUTH. Server-side SMTP AUTH is when
Postfix smtpd daemon offers SMTP AUTH to mail clients.
FILES
saslfinger - the script you need to run.
saslfinger.1 - the man page you are currently reading.
AUTHOR
Patrick Koetter, <patrick.koetter@state-of-mind.de>, http://www.state-of-mind.de
You will find the newest version of saslfinger at http://postfix.state-of-mind.de/patrick.koetter/saslfinger/.
BUGS
Please report bugs to <patrick.koetter@state-of-mind.de>
Manuals User saslfinger(1)