The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Query a DB from another DB in ksh tekster757 UNIX for Dummies Questions & Answers 1 09-16-2007 10:12 AM
& in SQL query Lindarella Shell Programming and Scripting 3 10-09-2006 01:43 PM
sed query.. mgirinath Shell Programming and Scripting 2 01-06-2006 10:30 AM
query varadakumar UNIX for Advanced & Expert Users 1 04-11-2002 09:09 AM
FTP query csong2 UNIX for Advanced & Expert Users 1 11-29-2001 12:50 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2007
Registered User
 

Join Date: Jul 2007
Posts: 34
sendmail query

Hi,

My requirement: sending mails through php script

My setup: I have local domain = station5.xyz.abc.com

and my local user id's are = jagdish@xyz.abc.com, nilesh@xyz.abc.com....etc

Now I want to send mails from these id to any gmail.com or yahoo.com email id's.

So please anybody tell me how I can do the required setup for this?..


I am waiting for your help.....


Regards
JAGDISH
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-31-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,128
The required setup will be domain with correct PTR record, not just local domain, i.e. your local mails to be forwarded to some other SMTP. I have tested these local domain stuff 1 year ago, even though the local BSD had all the records set correctly, I've been going out on DMZ from our ISP, so the mails were there, in Gmail, but in the spam folder. As for sending mails from PHP, take a look at their website
Reply With Quote
  #3 (permalink)  
Old 08-31-2007
Registered User
 

Join Date: Jul 2007
Posts: 34
Hi,

Thanks for the reply.......

Can you explain me briefly...please.

Please tell me what exactly PTR record must be needed/added

to work correctly.

On the sendmail and internet server :

my lan ip = 192.168.1.10

external ip = 202.144.1.37

my registered domain = xyz.com(say)

my internal domain = abc.xyz.com




Regards
JAGDISH
Reply With Quote
  #4 (permalink)  
Old 09-03-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,128
Your external IP has already set PTR record :
Quote:
host -v 202.144.1.37
Trying "37.1.144.202.in-addr.arpa"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51944
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;37.1.144.202.in-addr.arpa. IN PTR

;; ANSWER SECTION:
37.1.144.202.in-addr.arpa. 86400 IN PTR lan-202-144-1-37.maa.sify.net.
You just have to forward this mail communication to this IP and go out on DMZ (your local net/sys admin can arrange that, I believe), or the other option, like I said, set DNS records for your internal IP like : my.domain-for-mail.com, but most likely you'll get rejected due to SPF confilct by certain mail services.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0