Sponsored Content
Full Discussion: Smtp
Top Forums UNIX for Advanced & Expert Users Smtp Post 32922 by norsk hedensk on Tuesday 10th of December 2002 04:24:37 PM
Old 12-10-2002
i just asked a similar question , just search for my threads and its my last one before this. if your using postfix you can look in the main.cf and master.cf config files in your /etc/postfix/ directory, and look for a section that says 'mynetworks' or something like that, and add your ip address to that list. also see the postfix.org website, it is very helpful and has some sample (usable) configurations for a few different setups. if your using sendmail take a look at the sendmail website.
 

10 More Discussions You Might Find Interesting

1. IP Networking

SMTP mail

I want to send e-mail from my yahoo account. But mail -s "title" *@yahoo.com < line.txt is from my local address to *@yahoo.com. How can i do this? (1 Reply)
Discussion started by: Euler04
1 Replies

2. IP Networking

SMTP with sendmail

Hi, I have a solaris 9 box, and 2 domains A.com and B.net. the machine is on B.net. I am not able to send emails to @A.com using mail or mailx. after reading on sendmail, there was something about relaying and editing the file /etc/mail/relay-domains. Please let me know if this is what i... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

3. Programming

C Smtp

how do you send a ".\n" in a smtp client? >354 Send message, end with <CRLF>.<CRLF> >. > i have already issued a "./n" but it doesnt work. please help. thanks. (1 Reply)
Discussion started by: grotesque
1 Replies

4. Solaris

SMTP Configuration

Hello everyone, I've got this Java script which needs to know the SMTP host in order to send out mails from a particular mail ID. But I have no idea how or what to configure in SMTP for getting this code up and running.(All I know is SMTP=Simple Mail Transfer Protocol). I'm using Solaris 5.8.... (1 Reply)
Discussion started by: Rajat
1 Replies

5. AIX

SMTP doubt

Hi All, I have a unix box which is in a network with windows machine, I am able to send the mails to the user id's with in the unix box. I dont have Internet connection for this box, so I am not able to test if it can send mails to external network or not? I want to know, if SMTP is already... (0 Replies)
Discussion started by: balu_puttaganti
0 Replies

6. UNIX for Dummies Questions & Answers

Smtp

Hi All, I have a unix box which is in a network with windows machine, I am able to send the mails to the user id's with in the unix box. I dont have Internet connection for this box, so I am not able to test if it can send mails to external network or not? I want to know, if SMTP is already... (1 Reply)
Discussion started by: balu_puttaganti
1 Replies

7. Red Hat

SMTP Settings

Hi all, Please help to check weather the SMTP settings are configured or not on my LINUX server? I want to send a mail to mailbox. I know that the target SMTP server has to be configured on LINUX box to do so. How can i see weather it is configured or not? --Ramesh Ch. (3 Replies)
Discussion started by: Raamc
3 Replies

8. HP-UX

SMTP and NTLM

Hi, I have a HP Unix from which I'm trying to connect to an email server through telnet and test sending emails using commands. Why am I doing that is not important. The email server is an Exchange server and it looks like that the only Authentication method it supports is NTLM. The host name... (0 Replies)
Discussion started by: gheibia
0 Replies

9. Linux

SMTP issue

HI, I am having an issue with the mail. I had certain scripts who used to send mails. now i am not getting the mails as usual. need help to track the issue and resolve. mailx -s "Testing for details" xxx@yyy.zzz above code is used for mailing. can yoou please help? (2 Replies)
Discussion started by: onlyniladri
2 Replies

10. Solaris

SMTP relay Help

Hello!! Mau I know is there anyway that I can set the sendmail to relay the mail to different mail server base on the domain name? For example, Mail for abc.test.com will be sent to 1.1.1.1 and Mail for def.example.com will be sent to 2.2.2.2 Thanks for the help!!! (2 Replies)
Discussion started by: xiaochensg
2 Replies
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)
All times are GMT -4. The time now is 11:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy