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: 84DDF38C051: to=<email@example.com>, relay=XXX.com[###.###.###.###], delay=17, status=bounced (host XXX.com[###.###.###.##] said: 553 <firstname.lastname@example.org>... 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: 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: 2BFC738C051: from=<email@example.com>, size=487, nrcpt=1 (queue active)
Jan 27 11:22:31 frodo postfix/smtpd: disconnect from localhost[127.0.0.1]
Jan 27 11:22:33 frodo postfix/smtp: 2BFC738C051: to=<XXX@mydomain.com>, relay=XXX.com[###.###.###.###], delay=2, status=sent (250 LAA06317 Message accepted for delivery)
frodo = hostname
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.
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?
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 01:45 PM.|