07-25-2007
How to configure Suse Enterprise Linux 9.0 for sending mails to smtp server...???
Hi All,
I have a system running with Suse Enterprise Linux 9.0.
xyz# uname -a
Linux xyz 2.4.21-291-smp #1 SMP Tue May 24 14:07:45 UTC 2005 i686 unknown
I would like to configure postfix on this system for sending mails as a root user using "mail" command to smtp server (Windows System) which will then forward it to the correct address.
Example " xyz#
mail xyz@yahoo.com "
As per my knowledge there are two main configuration files in /etc/postfix folder;
main.cf
master.cf
Can anyone help me out what setting needs to be done for sending the mails to my smtp server from SuSE system.
Note : I have added the entry for my smtp server in /etc/hosts file.
Note : I have check the telnet connection using port 25 for the smtp server, it works fine.
Thanks & Regards,
jumadhiya.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
We had an upgrade today morning and since then mailx command is not working.
I have been told to change the DNS to use host name as smtp.companyname.com instead of the IP address.
Can someone please help me out to know where can I change this on a Unix Server.
Thanks
Aman (5 Replies)
Discussion started by: chawlaaman
5 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I need to send mail to a particular email id using a local mail server.This mail shall contain the content of a file. I don't have any idea how to do it. Can anyone guide me ,where to start proceeding for it. Any guide or study material would appreciated. (1 Reply)
Discussion started by: amit_kv1983
1 Replies
3. SuSE
Hi,
I have installed LKCD using lkcdutils pakage through Yast install and remove applications. I have used enterprise server cd for installation.
But I did not found any service of lkcd like /etc/init.d/boo.lkcd there.
if we dont have this servers lkcd dump can not be saved at dump... (0 Replies)
Discussion started by: bryanabhay
0 Replies
4. Linux
Hi All,
How to configure SMTP service in linux 5.2?
Please provide me the steps.
Thanks
Jack (5 Replies)
Discussion started by: jack00423
5 Replies
5. UNIX for Dummies Questions & Answers
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
6. Shell Programming and Scripting
Here is the code:
<?php
//new function
function loadini($path) {
$fp = fopen($path, "r");
$fpcontents = fread($fp, filesize($path));
fclose($fp);
return $fpcontents;
}
$to = "test@test.com";
$nameto = "notme";
$from = "test";
$namefrom = "Who From"; ... (0 Replies)
Discussion started by: galford
0 Replies
7. SuSE
Hello Folks,
Greetings,
I am in need of extending the / partition for one of my SuSE linux Enterprise Server 11.1 which is running on VMware. I will be able to extend the virtual lun from the vshphere console but not sure how to extend the root partition from the OS end. I am not sure if I... (1 Reply)
Discussion started by: PSP
1 Replies
8. UNIX for Dummies Questions & Answers
OK, I've been thrown into an issue at my company where the security folks want password aging turned on for their limited NIS environment.
The config is a SunOS5.10 (Solaris 10) Master with several slaves and several SuSe Enterprise Server 11 Clients.
What I'm looking to understand is... (0 Replies)
Discussion started by: rzrv15
0 Replies
9. UNIX and Linux Applications
Is there any SUSE enterprise 12 x86_32 version available? I have SUSE enterprise 12 x86_64 and I am unable to compile 32 programs in that. It looks to be that gcc compiler (32 bit) does not come with SUSE 12. How can I get that?
Regards,
George (6 Replies)
Discussion started by: George47
6 Replies
10. SuSE
hello All,
good day to you.
could you tell me is there any way I can download SUSE lunux enterprise server trail version ?
I want to install sap application over it.
thanks in advance. (1 Reply)
Discussion started by: Leaner_963
1 Replies
LEARN ABOUT DEBIAN
mail::sendeasy::smtp
Mail::SendEasy::SMTP(3pm) User Contributed Perl Documentation Mail::SendEasy::SMTP(3pm)
NAME
Mail::SendEasy::SMTP - Handles the communication with the SMTP server without dependencies.
DESCRIPTION
This module will handle the communication with the SMTP server. It hasn't dependencies and supports authentication.
USAGE
use Mail::SendEasy ;
$smtp = Mail::SendEasy::SMTP->new( 'domain.foo' , 25 , 120 ) ;
if ( !$smtp->auth ) { warn($smtp->last_response_line) ;}
if ( $smtp->MAIL("FROM:<$mail{from}>") !~ /^2/ ) { warn($smtp->last_response_line) ;}
if ( $smtp->RCPT("TO:<$to>") !~ /^2/ ) { warn($smtp->last_response_line) ;}
if ( $smtp->RCPT("TO:<$to>") !~ /^2/ ) { warn($smtp->last_response_line) ;}
if ( $smtp->DATA =~ /^3/ ) {
$smtp->print("To: foo@foo") ;
$smtp->print("Subject: test") ;
$smtp->print("
") ;
$smtp->print("This is a sample MSG!") ;
if ( $smtp->DATAEND !~ /^2/ ) { warn($smtp->last_response_line) ;}
}
$smtp->close ;
METHODS
new ($host , $port , $timeout , $user , $pass)
Create the SMTP object and connects to the server.
connect
Connect to the server.
auth_types
The authentication types supported by the SMTP server.
auth($user , $pass)
Does the authentication.
print (data)
Send data to the socket connection.
cmd (CMD , @MORE)
Send a command to the server.
response
Returns the code response.
If wantarray returns an ARRAY with the response lines.
last_response
Returns an ARRAY with the response lines.
last_response_msg
The last response text.
last_response_line
The last response line (code and text).
close
QUIT and close the connection.
AUTHOR
Graciliano M. P. <gm@virtuasites.com.br>
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2004-04-09 Mail::SendEasy::SMTP(3pm)