Page 2 of 2
Re: Using sendmail to forward email to mail.sonic.net
Posted: Wed Feb 12, 2014 5:25 pm
by boris_r
Thanks MrMaui76, I'll try to install postfix & let you know. (this isn't a high priority though)
Re: Using sendmail to forward email to mail.sonic.net
Posted: Mon Jul 28, 2014 3:14 pm
by dweeks
I hope it's OK to revive this thread. I've moved away from California, and had to get Internet service through Comcast. But I want to keep using the Sonic mail servers. The imap server is working fine, but I'm having trouble with outgoing mail. I'm using Mutt and postfix.
When I had Sonic DSL service, I could use a _myhostname_ value of "64-142-40-120.dsl.static.sonic.net". That's no good now, of course, but it's not clear what I should use instead. I've tried "mail.sonic.net", but when I send a message with that setting, my mail.log says:
Jul 28 17:41:35 [localmachinename] postfix/qmgr[11882]: 017FE62F00: from=<
[email protected]>, size=511, nrcpt=1 (queue active)
This can't be right; "dmw" is my user name on the local machine, but it's not valid on the Sonic server.
Are there values I can use for _myhostname_ and _mydomain_ that will get this to work? (For _relayhost_ I have "[mail.sonic.net]".)
Thanks so much for any help.
David Weeks
Re: Using sendmail to forward email to mail.sonic.net
Posted: Mon Jul 28, 2014 3:34 pm
by oddhack
dweeks wrote:When I had Sonic DSL service, I could use a _myhostname_ value of "64-142-40-120.dsl.static.sonic.net". That's no good now, of course, but it's not clear what I should use instead. I've tried "mail.sonic.net", but when I send a message with that setting, my mail.log says:
Jul 28 17:41:35 [localmachinename] postfix/qmgr[11882]: 017FE62F00: from=<
[email protected]>, size=511, nrcpt=1 (queue active)
This can't be right; "dmw" is my user name on the local machine, but it's not valid on the Sonic server.
Are there values I can use for _myhostname_ and _mydomain_ that will get this to work? (For _relayhost_ I have "[mail.sonic.net]".)
Thanks so much for any help.
David Weeks
I think you can use anything that resolves locally, e.g. in my /etc/hosts I have
192.168.1.2 brad.somerandomname.org
and also use
myhostname = brad.somerandomname.org
in Postfix main.cf (along with some games with postfix/generic and postfix/virtual so that mail CCed to my sonic
account from the local machine is delivered locally to the (different) local username). There is no
brad.somerandomname.org in the global DNS, but that's irrelevant for this purpose.
Re: Using sendmail to forward email to mail.sonic.net
Posted: Tue Jul 29, 2014 3:00 pm
by dweeks
Thanks very much for the suggestion, oddhack. I haven't been able to translate it into something that works for my setup, but I'll keep working on it.
dmw
Re: Using sendmail to forward email to mail.sonic.net
Posted: Tue Jul 29, 2014 3:52 pm
by oddhack
dweeks wrote:Thanks very much for the suggestion, oddhack. I haven't been able to translate it into something that works for my setup, but I'll keep working on it.
dmw
I put a version of my working Postfix 2.9.6 configuration files here, in case it helps:
http://pastebin.com/Su5k4t8y
Re: Using sendmail to forward email to mail.sonic.net
Posted: Wed Jul 30, 2014 9:22 pm
by kgc
Unless you really need to have your local host be able to send mail to the internet at large, you could always just configure mutt for sending via SMTP with authentication.
set smtp_url=smtp://
[email protected]:587
set smtp_pass=secret
Re: Using sendmail to forward email to mail.sonic.net
Posted: Tue Aug 05, 2014 2:34 pm
by dweeks
Oh, for crying out loud. It seems like that's all I needed. I do that with the server at work; why on earth didn't I think of it for Sonic's? Thank you, Kelsey.
Re: Using sendmail to forward email to mail.sonic.net
Posted: Tue Sep 16, 2014 2:51 pm
by forest
For the sake of anyone else with simple needs, it's worth mentioning the DragonFly Mail Agent. Much easier configuration than sendmail's, no open ports, and just about perfect if you want your OS services (e.g. cron) to be able to send mail over the network instead of trying to deliver it locally. It comes in the "dma" package on ubuntu and very recent debian distributions