<div dir="ltr">I currently have rancid installed but it seems for the life of me I'm never going to get this system to send mails outside of this box. It's a Debian box, attempted exim at first and gave up on that and moved to postfix. I'm not 100% certain that even if I get postfix to do it's thing if rancid will use it correctly at this point. Unfortunately, I haven't been the only one on this project and many people have stuck their fingers in it without documenting what changes they have made. <br>
<br>The problem I have those is I'll change the /etc/aliases file and do a "newaliases". <br><br>In the /etc/postfix/<a href="http://main.cf">main.cf</a> I have the following: (mind you i'm editting out our domain name).<br>
<br><snippet><br>alias_maps = hash:/etc/aliases<br>alias_database = hash:/etc/aliases<br>myorigin = /etc/mailname<br>mydestination = <a href="http://richxnet01.domain.com">richxnet01.domain.com</a>, <a href="http://localhost.domain.com">localhost.domain.com</a>, localhost<br>
mynetworks = <a href="http://127.0.0.0/8">127.0.0.0/8</a><br>mailbox_command = procmail -a "$EXTENSION"<br>mailbox_size_limit = 0<br>recipient_delimiter = +<br>inet_interfaces = all<br>relayhost = <our ip for our smtp server ><br>
</snippet> <br><br>my /etc/alias file looks like this: <br><br># /etc/aliases<br>mailer-daemon: postmaster<br>postmaster: root<br>nobody: root<br>hostmaster: root<br>usenet: root<br>news: root<br>webmaster: root<br>
www: root<br>ftp: root<br>abuse: root<br>noc: root<br>security: root<br>root: postmaster@<br>rancid-admin-Juniper: <a href="mailto:my-name@cavtel.com">my-name@cavtel.com</a><br>rancid-admin-Cisco: <a href="mailto:my-name@cavtel.com">my-name@cavtel.com</a><br>
rancid-Cisco: <a href="mailto:my-name@cavtel.com">my-name@cavtel.com</a><br>racid-Test: my-name@<br><br>my /etc/mailname file looks like this: (again, domain editted)<br><br><a href="http://domainname.com">domainname.com</a><br>
<br>and I will do the following to send a test message: <br><br><b>#telnet localhost 25</b><br>
<i>Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
220 localhost ESMTP Postfix (Ubuntu)</i><br>
<b>ehlo mail</b><br>
<i>250-localhost<br>
250-PIPELINING<br>
250-SIZE 10240000<br>
250-VRFY<br>
250-ETRN<br>
250-STARTTLS<br>
250 8BITMIME</i><br>
<b>mail from: <<a href="mailto:test@test.com">test@test.com</a>></b><br>
<i>250 Ok</i><br>
<b>rcpt to: <rancid-Test> </b>(also have tried rancid-admin-Cisco)<br>
250 Ok<br>
<b>data</b><br>
<i>354 End data with .<br></i>
<b>Subject: This is a test !</b><br>
<b>Wake up please!</b><br>
<b>.</b><br>
<i>250 Ok: queued as BD8261C01D4</i><br>
<b>quit</b><br>
<i>Connection closed by foreign host.</i><br><br><br>Doing a tail /var/log/mail.log gets me the following:<br><ol><li class="li2"><div class="de2">Sep 22 14:39:16 RICHXNET01 postfix/smtpd[4552]: disconnect from localhost.localdomain[<a href="http://127.0.0.1">127.0.0.1</a>]</div>
</li><li class="li1"><div class="de1">Sep 22 14:45:01 RICHXNET01 postfix/smtpd[5114]: connect from localhost.localdomain[<a href="http://127.0.0.1">127.0.0.1</a>]</div></li><li class="li2"><div class="de2">Sep 22 14:45:15 RICHXNET01 postfix/smtpd[5114]: disconnect from localhost.localdomain[<a href="http://127.0.0.1">127.0.0.1</a>]</div>
</li><li class="li1"><div class="de1">Sep 22 14:45:22 RICHXNET01 postfix/smtpd[5114]: connect from localhost.localdomain[<a href="http://127.0.0.1">127.0.0.1</a>]</div></li><li class="li2"><div class="de2">Sep 22 14:45:44 RICHXNET01 postfix/smtpd[5114]: 2A3615B4F8: client=localhost.localdomain[<a href="http://127.0.0.1">127.0.0.1</a>]</div>
</li><li class="li1"><div class="de1">Sep 22 14:45:54 RICHXNET01
postfix/cleanup[5422]: 2A3615B4F8:
message-id=<20080922184544.2A3615B4F8@richxnet01.localdomain></div></li><li class="li2"><div class="de2">Sep 22 14:45:54 RICHXNET01 postfix/qmgr[31788]: 2A3615B4F8: from=<<a href="mailto:tst@tst.com">tst@tst.com</a>>, size=367, nrcpt=1 (queue active)</div>
</li><li class="li1"><div class="de1">Sep 22 14:45:55 RICHXNET01
postfix/smtp[5490]: 2A3615B4F8: to=<<a href="mailto:rancid-Test@my-domain.com">rancid-Test@my-domain.com</a>>,
orig_to=<rancid-Test>, relay=<a href="http://10.201.60.109">10.201.60.109</a>[<a href="http://10.201.60.109">10.201.60.109</a>]:25,
delay=21, delays=20/0.01/0/0.09, dsn=2.6.0, status=sent (250 2.6.0
<20080922184544.2A3615B4F8@richxnet01.localdomain> Queued mail
for delivery)</div></li><li class="li2"><div class="de2">Sep 22 14:45:55 RICHXNET01 postfix/qmgr[31788]: 2A3615B4F8: removed</div></li><li class="li1"><div class="de1">Sep 22 14:45:56 RICHXNET01 postfix/smtpd[5114]: disconnect from localhost.localdomain[<a href="http://127.0.0.1">127.0.0.1</a>]</div>
</li></ol>It seems the name i'm mailing to is simply getting the domain name appended to it and it's completely ignoring the alias file all together. Rancid is all setup, the cron jobs are good to go, but when i run "rancid-run" I do not recieve any mail.<br>
<br>Excuse any ignorance I'm displaying, I've never played with rancid, postfix, or exim before at all. I've tried other avenues for assistance with the postfix folk, but haven't gotten much help. Anything anyone could provide would be greatly appreciated I've been going in circles with this for 2 weeks.<br>
</div>