sendmail query


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sendmail query
# 1  
Old 08-31-2007
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
# 2  
Old 08-31-2007
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
# 3  
Old 08-31-2007
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
# 4  
Old 09-03-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Need help on sendmail

my requirement is user should be able put username@particular domain in from address, if he is adding anything in from address,it should not allow to send the mail. there should be restriction on from address. (2 Replies)
Discussion started by: manoj.solaris
2 Replies

2. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

3. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

4. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

5. Linux

Regarding sendmail

dear all, i am able to send mails using mailx to my internal users like "root" "oracle" but if i want to sendmail to external domain for ex : gmail.com kindly let me know how to do this. regards jegar (2 Replies)
Discussion started by: jegaraman
2 Replies

6. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

7. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

8. UNIX for Dummies Questions & Answers

sendmail

Hello, how do you activate the sendmail program in solaris9? thanks, grep (4 Replies)
Discussion started by: grep
4 Replies

9. UNIX for Dummies Questions & Answers

sendmail.... any help?

I am trying to configure sendmail (v 8.12.5-7 on Redhat Linux 8) on my server. I am unable to send or receive messages using mail command (or any command for that matter). My mailserver name: abc.com I have setup user1 to alias as user1@def.com so that all of his mails are relayed to... (5 Replies)
Discussion started by: skotapal
5 Replies

10. UNIX for Dummies Questions & Answers

sendmail

When ever I start up linux the pc hangs for 10min due to send mail. Advice how do I disable or stop this from happening?:( (1 Reply)
Discussion started by: danny howell
1 Replies
Login or Register to Ask a Question