Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending mail via sendmail to a groupwise mail server

Status
Not open for further replies.

ericmc

Vendor
Apr 4, 2001
8
US
I've searched through other posts on how to get sendmail to send to an Exchange server and I'm sure that it's no different with GroupWise but I can't get it to work. I've tried several of the things in the previous posts. I've changed the sendmail.cf file as follows:

Dwrs6000
Dmxyz.org
Cwrs6000
DRsmtp:xyzmailserver

I want to be able to send mail to the server and then have it send it on to the recepient. I don't want to forward mail so I don't think I have to set up the aliases file. I just want to do "mail bob@xyz.org". Do I have to have DNS set up some special way? I'm not even trying to send mail outside of the company, just inside, so I didn't think I would need DNS. The mail server is even on the same network as the AIX box.

Any help would be greatly appreciated.
 
In my system, AIX 4.2 - I tried the following and seems to work:

* You can check the file name "sendmail.cf" under /etc directory
* You can define additional mail host by:
- Backing up filename sendmail.cf to sendmail.cf.original under /etc.
- vi sendmail.cf
- Uncomment
#Fw-o /etc/sendmail.cw
- Save and exit vi
- Create filename sendmail.cw under /etc
- Edit sendmail.cw and type/provide additional email host (your exchange server, maybe)
- Save and exit vi
- Run @ command prompt
# refresh -s sendmail
- Check sendmail process using
# ps -ef | grep sendmail (you should be able to see sendmail : accepting connections on port 25).

I hope it'll work.
 
The above sounds good as well................ or maybe one of these will help?
Not sure.........


MS exchange Server Steps
Step one: vi /etc/hosts to have a fully qualified name i.e 199.99.99.99 myhost myhost. (add the . or .com to the name of the rs6000 machine)


Step two: add a fully qualified name to the Exchange server as well...and make sure it will respond to a fully qualified name.
i.e 199.99.99.98 mailhost mailhost.


Step three: vi /etc/sendmail.cf file..... look for the DS macro make it look like the following:
DSsmtp:[ipaddress] or DSsmtp:nameofmailserver


If you want everything in the world to be sent do the same to DR macro
save the file

Step four: refresh -s sendmail make sure it is running with lssrc -s sendmail if you get errors kill mail with a kill -15 on the process and restart with
startsrc -s sendmail -a " -bd -q 30m "
Step five: run newaliases
Step six: set up user aliases for each user on the other machine....... remember if you set up DR...all mail including root will be transferred...which means unless you have a root user on the other side you will have a lot of dead letters.... Make sure you have an alias for root then if you do it.. Run newaliases again if you need to for your aliases....

Step seven: mail -v emailaddress and see what happens it should say "connect to mailservername" or something like this if it makes it.....


You need to have an MX record in DNS, and for every user that does not exist on the Exchange server you will need to set up an alias. You may also need to set DNS to "@" (without the hostname in the domane..... or find the invalid ones and add them manaually.

You can also have a $HOME/.forward file to redirect your email for each user if you wish.
 
I have emails erroring out to certain mail services (ie aol but not to others ..msn)
here is a trace
testJ50 hmistst /home/hci $ mail -v bob_schmid@hmis.org
Subject: hi
bye
Cc: Warning: .cf file is out of date: sendmail AIX4.3/8.9.3 supports version 8, .cf file is version 7
bob_schmid@hmis.org... Connecting to mail.hmis.org. via esmtp...
220 hmntsexch1.HMIS.ORG ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready
>>> EHLO testJ50.org
250-hmntsexch1.HMIS.ORG Hello [testj50.hmis.org]
250-XEXCH50
250-HELP
250-ETRN
250-DSN
250-SIZE 153600000
250-AUTH LOGIN
250 AUTH=LOGIN
>>> MAIL From:<hci@testJ50.org> SIZE=41
250 OK - mail from <hci@testJ50.org>; can accomodate 41 bytes
>>> RCPT To:<bob_schmid@hmis.org>
250 OK - Recipient <bob_schmid@hmis.org>
>>> DATA
354 Send data. End with CRLF.CRLF
>>> .
250 OK
bob_schmid@hmis.org... Sent (OK)
Closing connection to mail.hmis.org.
>>> QUIT
221 closing connection

note the &quot;250 OK - mail from <hci@testJ50.org>&quot; I believe the testJ50 (my host name) is causing this to fail...is there a way I can masquerade this part of the domain sender address ?

Bob Schmid
bob_schmid@hmis.org
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top