Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Relay outgoing Mail

Hello,


On the new OS X Server 3.0 when selecting 'Relay Outgoing Mail through ISP' and entering example.com:587 the Server App complains and rejects the entry as invalid.

Works fine on OS X Server 2.2.2

Any suggestions/help will be greatly appreciated.


Thanks,


Michael A.

Aperture 3

Posted on Oct 26, 2013 11:18 AM

Reply
15 replies

Oct 27, 2013 1:16 AM in response to Charles Leslie

Not that it helps necessarily, but answers Charles' question.


According to:


https://help.apple.com/advancedserveradmin/mac/3.0/


The relevant parts under Provide Mail and Messages services -> Mail -> Manage Mail service -> Provide Mail service -> Specify a mail relay server - the format has not changed. You are still supposed to be able to place the port following a colon after the address such as: example.com:587.


Sending mail is now at a halt on my server as my ISP does not allow sending mail via relay without a specified port or without relay for that matter.


- Steven

Oct 27, 2013 3:02 PM in response to mabadjiev

I had the same problem, the fix I used was adding the port using the serveradmin command.


sudo serveradmin set mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_host = "example.com:587"


This shouls add the port number for you.


to see if the port is added to the relay use the command below to see all the mail settings.


sudo serveradmin settings mail


Hope this helps but let me know if it doesn't

Ed

Oct 28, 2013 6:46 PM in response to mabadjiev

All,


sudo serveradmin set mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_host = "example.com:587"

didn't work for me, even though the ountput of

sudo serveradmin settings mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_host

(and restart the mail system)

shows the right thing mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_host = "example.com:587"

but /Library/Server/Mail/Config/postfix/main.cf does not.


I had to do it the old school way (like Charles suggested)


sudo vi /Library/Server/Mail/Config/postfix/main.cf


and add relayhost = host.example.com:587 (actually add the port only)

and issue 'sudo postfix reload' and it works.


The fun part is when I clieck on the 'Edit' button for 'Relay outgoing mail through ISP' it show blank.

I did not wanted to save it, so at this point I don't know what the result will be.


I think this is a major bug.

Thank you all for helping me figure it out.

At this point I will wait untill Apple fixes the issue before I migrate.


Michael Abadjiev

Oct 30, 2013 4:52 PM in response to mabadjiev

I have the same problem when i do vi and port then restart mail service i get these problems



Oct 30 09:44:30 tarfan.net postfix/master[3206]: fatal: bad string length 0 < 1: setgid_group =

Oct 30 09:44:41 tarfan.net postfix/master[3229]: fatal: bad string length 0 < 1: setgid_group =

Oct 30 09:44:51 tarfan.net postfix/master[3252]: fatal: bad string length 0 < 1: setgid_group =

Oct 30 16:06:55 tarfan.net postfix/postmap[2544]: fatal: bad string length 0 < 1: mydomain_fallback =

Oct 30 16:06:56 tarfan.net postfix/postmap[2546]: fatal: bad string length 0 < 1: mydomain_fallback =

Oct 30 16:07:09 tarfan.net postfix/postmap[2559]: fatal: bad string length 0 < 1: mydomain_fallback =

Oct 30 16:07:10 tarfan.net postfix/postmap[2563]: fatal: bad string length 0 < 1: mydomain_fallback =

Oct 30 16:08:53 tarfan.net postfix/postmap[2666]: fatal: bad string length 0 < 1: mydomain_fallback =

Oct 30 16:08:54 tarfan.net postfix/postmap[2672]: fatal: bad string length 0 < 1: mydomain_fallback =



Help please not using setgid and have localhost as backup domain can some give me example of what my main .cf file should look like


Thans

Jan 8, 2014 10:25 AM in response to mabadjiev

OS X Server 3.0.2 is out and they have not "fixed" the issue. I think this is in acordance with the industry specification and they have removed the ability to add a custom port. Port 465 or 587 are not industry spec, nor are other ports EXCEPT port 25.


This is Apple enforcing standards on the community. They are right... but... time to call my ISP or OUTBOUND SMTP provider.

Jan 26, 2014 9:10 AM in response to basilmir

Greetings,


It and old problem, but after looking around and trying stuff to no avail, I found the answer in this forum somewheres (lost the post already, hehehe...my bad)


I had the "server can not relay" issue and, what it worked for me like a charm on my old iPod and iMac (no issues with old iPad whatsoever), was doing this via Settings on the iPod, (it's gotta work for the iPhone too, what's the difference?) and via System Preferences>Internet Accounts on the Mac:


1. Delete the faulty e-mail account (AOL in this case, and where I've seen around the problem exists), and then...

2. Re-set it again.


As simple as that.


Tested it, and everything went back to normal. You can't lose any emails, because everything is on the email online servers right? It makes sense.


Hope this helps.

Relay outgoing Mail

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.