免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1171 | 回复: 6
打印 上一主题 下一主题

[Mail] 关于SENDMAIL的救求啊,大哥们帮帮忙了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-20 14:33 |只看该作者 |倒序浏览
安装配置了一个SUN的SENDMAIL,采用原来的Sendmail.cf文件,SUN自带的Sendmail软件。
  HOSTNAME  是 MAIL
修改了:
  Cwlocalhost mycompany.com.cn
   Djmycompany.com.cn
能够正常从我的笔记本上发送EMAIL
   配置QPoper,可以接收EMAIL
DNS 都是正常的。

问题:

  发送的EMAIL,客户接收到EMAIL后显示的EMAIL地址不是我设定的EMAIL地址 myaccount@mycompany.com.cn 而是myaccount@mail.mycompany.com.cn,是什么问题啊,如何解决这个问题啊。

论坛徽章:
0
2 [报告]
发表于 2004-05-20 16:05 |只看该作者

关于SENDMAIL的救求啊,大哥们帮帮忙了

MASQUERADE_AS(`myconpany.com.cn')dnl
FEATURE(`masquerade_envelope')dnl

Add these two lines to sendmail.mc,
remake sendmail.cf.

论坛徽章:
0
3 [报告]
发表于 2004-05-20 16:13 |只看该作者

关于SENDMAIL的救求啊,大哥们帮帮忙了

Second Plan:

GENERIC_DOMAIN(`mycompany.com.cn')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl

add these two lines to sendmail.mc, remake sendmail.cf.

then create genericstable.db like this,
youname yourname@mycompany.com.cn

#makemap hash genericstable < genericstable

But, the Plan One is the best.

论坛徽章:
0
4 [报告]
发表于 2004-05-20 19:24 |只看该作者

关于SENDMAIL的救求啊,大哥们帮帮忙了

各位大哥,我这里的SUN没有安装GCC,MAKE,M4等等,现在也DOWN不到这些软件了,如何修改SENDMAIL.CF软件来解决这个问题呢?

论坛徽章:
0
5 [报告]
发表于 2004-05-20 21:44 |只看该作者

关于SENDMAIL的救求啊,大哥们帮帮忙了

这个就比较麻烦了,
欧的技术还没有高超到能自己写cf呢,
sun没有什么可用的系统软件么?
你去找一个同样版本的sendmail,
里面会有generic.sendmail.mc,(for sun)
到其他机器上做好了cp过去。

论坛徽章:
0
6 [报告]
发表于 2004-05-21 07:12 |只看该作者

关于SENDMAIL的救求啊,大哥们帮帮忙了

原帖由 "ports" 发表:
Second Plan:

GENERIC_DOMAIN(`mycompany.com.cn')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl

add these two lines to sendmail.mc, remake sendmail.cf.

then create generic..........


fix for plan 2: oops

Add this lines to sendmail.mc


  1. FEATURE(masquerade_envelope)
  2. GENERICS_DOMAIN_FILE(`/etc/mail/generics_domains')dnl
  3. FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
复制代码


remake sendmail.cf by m4(change the cf path as yours):

  1. # m4 -D_CF_DIR_=/usr/local/share/sendmail/cf/ /usr/local/share/sendmail/cf/m4/cf.m4 sendmail.mc >; sendmail.cf
复制代码


then create genericstable like this,

  1. user1 webmaster@mycompany.com.cn
  2. user2 sales@mycompany.com.cn
  3. user3 support@mycompany.com.cn
复制代码


make genericstable.db

  1. #cd /etc/mail
  2. #makemap hash generisctable < genericstable
  3. #ls generics*
  4. genericstable genericstable.db
复制代码


create GENERICS_DOMAIN_FILE


  1. #echo -e mycompany.com.cn \\n host1.mycompany.com.cn \\n host2 mycompany.com.cn >; generics_domains
复制代码


fainally, #killall sendmail&& sendmail -bd

I just tested these steps, no problem.
the user1@host1 will be exchange to webmaster@yourcompany.com.cn.
Ofcos, reedit the table as your need.
  
faint~~~~he Plan One is the best.

论坛徽章:
0
7 [报告]
发表于 2004-05-26 18:49 |只看该作者

关于SENDMAIL的救求啊,大哥们帮帮忙了

谢谢各位大虾了,我已经搞定了MAKE,M4,
因为是Solaris8的,找不到相对应的MC文件,那位大哥有原始的for Solaris8的MC文件内容,可以贴一下吗,谢谢。
另外,我的MAIL服务器在内网,需要OPENRELAY的,安装标准的MC编译的不支持OPENRELAY,但是SUN的自己带的Sendmail.cf文件是支持OpenRelay的,(增加了Access的内容,10.0.0 RELAY),如何修改MC文件使得支持OPENRELAY呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP