LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Postfix Help - Sending via third party smtp (https://www.linuxquestions.org/questions/linux-networking-3/postfix-help-sending-via-third-party-smtp-139291/)

scarstens 01-27-2004 02:26 PM

Postfix Help - Sending via third party smtp
 
I've been trying for days now to get a new RH 9.0 server to send emails via our companies (third party) smtp server. I first tried sendmail - yeah that sucked.

Switched to postfix! I can get emails to send to anyone with an email address from our domain. So assume my domain is 123.com anyone that has a 123.com email address will receive emails I send from this server.

When I try sending to someone outside the domain (which will be a very common occurance since this server will host our companies knowledge base) I get the following...

postfix/smtp[17500]: 84DDF38C051: to=<email@att.net>, relay=XXX.com[###.###.###.###], delay=17, status=bounced (host XXX.com[###.###.###.##] said: 553 <email@att.net>... Not server for att.net)

What am I missing?

An email to someone in my domain returns this...

Jan 27 11:22:31 frodo sendmail[17667]: i0RGMVFk017667: to=XXX@mydoamin.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 2BFC738C051)
Jan 27 11:22:31 frodo postfix/nqmgr[17242]: 2BFC738C051: from=<root@mydoamin.com>, size=487, nrcpt=1 (queue active)
Jan 27 11:22:31 frodo postfix/smtpd[17669]: disconnect from localhost[127.0.0.1]
Jan 27 11:22:33 frodo postfix/smtp[17672]: 2BFC738C051: to=<XXX@mydomain.com>, relay=XXX.com[###.###.###.###], delay=2, status=sent (250 LAA06317 Message accepted for delivery)


frodo = hostname

Linux_in_NH 01-27-2004 03:30 PM

sounds like your relay server does not want to accept messages from you to relay. Does not sounds like a problem on the postfix system. You could try to modify postfix to not use a relay_host and see if that gets you around the problem for now.

scarstens 01-27-2004 05:51 PM

THANK YOU Linux_in_NH

I took out one setting "relayhost = smtp.mydomain.com" and it worked!!

I don't know why this was in there in the first place - I guess since I have been trying everything for several days now...

What do you use the relayhost settings for anyway?

Since it appears to work fine now (sent several emails to three different domains and they all arrived - where before only my domain worked) is there any thing else I should double check?

Thanks again.

Linux_in_NH 01-27-2004 05:55 PM

glad to help..... :-) (what?!? no aferro?) anyway, the relayhost is used if you need all of your email to another system before it 'leaves the building'. Like if you have an internal mail server that handles all of your companies messages, but it does not have direct access to the internet (firewalls and suchnot). In that case, you send non-local messages to a relayhost, that has access to the Internet, and let it take care of it.


All times are GMT -5. The time now is 08:42 AM.