Sponsored Content
Operating Systems AIX how to configure server to send email in AIX Post 302192378 by prichard on Tuesday 6th of May 2008 07:41:43 PM
Old 05-06-2008
Try this before modifying the sendmail.cf

echo test | mail -v username@someplace.tld
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send email to another server on AIX

I am trying to send an email to another server but i don't seem to be able to do it. I can receive mail form other servers but not send out. I am using IBM AIX 4.x Any knows whcih configuration file i need to set ? or any network port to look out for ? (1 Reply)
Discussion started by: owls
1 Replies

2. AIX

Configure AIX v5.1 for send mail

Hi, I wish to send a mail via ksh using this command: cat mailfile | mail -s "My Project." gio123bg@hel.com Is it necessary to configure some file? If yes, in which way? May you explain me all steps necessary to implement the above command? Many thanks in advance for your kind... (0 Replies)
Discussion started by: gio123bg
0 Replies

3. AIX

Send email from unix (AIX) with PDF attachment

I am using the following command to send PDF attachment with a mail. uuencode <attachment.pdf> <attachment.pdf>|mailx -s <subject> <mail_id> < <Message_file.txt> This one send the message with attachment. I would like send PDF attachment with the mail Can any one help with this issue ? ... (0 Replies)
Discussion started by: sunjup
0 Replies

4. Solaris

Server unable to send mail-how to configure

Hi All, I'm unable to send out email using mailx command in a new server. I guess the server has to be configured for this. I searched a lot and everywhere it was asked to check /etc/sendmail.cf (I don't have this file in that path.) And I don't have a folder called host or hosts in /etc... (6 Replies)
Discussion started by: Qwerty123
6 Replies

5. AIX

how to send a file from aix to a email address?

how to send a file from aix to a email address? such as xxx@yahoo.com? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

6. UNIX for Dummies Questions & Answers

How do I configure Linux server to be able to send emails internally?

Hi The script: #!/bin/sh #set -x # set admin email so that you can get email ADMIN="myemailaddress" # set alert level ALERT=4 df -HP | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do #echo $output usep=$(echo $output | awk '{ print... (5 Replies)
Discussion started by: wbdevilliers
5 Replies

7. Solaris

Send an email from Solaris using Linux email server

Hello everyone I have a problem and I need your help: I have a Solaris 10 and Solaris 8 UNIX Servers, and Linux Centos4 as email server. I need send an email from Solaris servers preferably using Centos4 email server. I have no mail service configured in my Solaris computers (1 Reply)
Discussion started by: aflores
1 Replies

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

9. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

10. AIX

Configure AIX server to send logs and auditing to Qradar

Hi All I need your help to configure Aix to send logs to Qradar, I did all the methods that mentioned in IBM website and no use, Plz Help,, The Logs should I receive from Aix and display in Qradar is (create user delete user changing in privileges....etc ) my skype account khaled_ly84 ... (4 Replies)
Discussion started by: khaled_ly84
4 Replies
Email(3pm)						User Contributed Perl Documentation						Email(3pm)

NAME
Data::Validate::Email - common email validation methods SYNOPSIS
use Data::Validate::Email qw(is_email is_email_rfc822); if(is_email($suspect)){ print "Looks like an email address "; } elsif(is_email_rfc822($suspect)){ print "Doesn't much look like an email address, but passes rfc822 "; } else { print "Not an email address "; } # or as an object my $v = Data::Validate::Email->new(); die "not an email" unless ($v->is_email('foo')); DESCRIPTION
This module collects common email validation routines to make input validation, and untainting easier and more readable. All functions return an untainted value if the test passes, and undef if it fails. This means that you should always check for a defined status explicitly. Don't assume the return will be true. (e.g. is_username('0')) The value to test is always the first (and often only) argument. FUNCTIONS
new - constructor for OO usage new([\%opts]); Description Returns a Data::Validator::Email object. This lets you access all the validator function calls as methods without importing them into your namespace or using the clumsy Data::Validate::Email::function_name() format. Arguments An optional hash reference is retained and passed on to other function calls in the Data::Validate module series. This module does not utilize the extra data, but some child calls do. See Data::Validate::Domain for an example. Returns Returns a Data::Validate::Email object is_email - is the value a well-formed email address? is_email($value); Description Returns the untainted address if the test value appears to be a well-formed email address. This method tries to match real-world addresses, rather than trying to support everything that rfc822 allows. (see is_email_rfc822 if you want the more permissive behavior.) In short, it pretty much looks for something@something.tld. It does not understand real names ("bob smith" <bsmith@test.com>), or other comments. It will not accept partially-qualified addresses ('bob', or 'bob@machine') Arguments $value The potential address to test. Returns Returns the untainted address on success, undef on failure. Notes, Exceptions, & Bugs This function does not make any attempt to check whether an address is genuinely deliverable. It only looks to see that the format is email-like. The function accepts an optional hash reference as a second argument to change the validation behavior. It is passed on unchanged to Neil Neely's Data::Validate::Domain::is_domain() function. See that module's documentation for legal values. is_email_rfc822 - does the value look like an RFC 822 address? is_email_rfc822($value); Description Returns the untainted address if the test value appears to be a well-formed email address according to RFC822. Note that the standard allows for a wide variety of address formats, including ones with real names and comments. In most cases you probably want to use is_email() instead. This one will accept things that you probably aren't expecting ('foo@bar', for example.) Arguments $value The potential address to test. Returns Returns the untainted address on success, undef on failure. Notes, Exceptions, & Bugs This check uses Casey West's Email::Address module to do its validation. The function does not make any attempt to check whether an address is genuinely deliverable. It only looks to see that the format is email-like. is_domain - does the value look like a domain name? is_domain($value); Description Returns the untainted domain if the test value appears to be a well-formed domain name. This test uses the same logic as is_email(), rather than the somewhat more permissive pattern specified by RFC822. Arguments $value The potential domain to test. Returns Returns the untainted domain on success, undef on failure. Notes, Exceptions, & Bugs The function does not make any attempt to check whether a domain is actually exists. It only looks to see that the format is appropriate. As of version 0.03, this is a direct pass-through to Neil Neely's Data::Validate::Domain::is_domain() function. The function accepts an optional hash reference as a second argument to change the validation behavior. It is passed on unchanged to Neil Neely's Data::Validate::Domain::is_domain() function. See that module's documentation for legal values. is_username - does the value look like a username? is_username($value); Description Returns the untainted username if the test value appears to be a well-formed username. More specifically, it tests to see if the value is legal as the username component of an email address as defined by is_email(). Note that this definition is more restrictive than the one in RFC822. Arguments $value The potential username to test. Returns Returns the untainted username on success, undef on failure. Notes, Exceptions, & Bugs The function does not make any attempt to check whether a username actually exists on your system. It only looks to see that the format is appropriate. AUTHOR
Richard Sonnen <sonnen@richardsonnen.com>. COPYRIGHT
Copyright (c) 2004 Richard Sonnen. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2009-02-01 Email(3pm)
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy