Re: Simple sendmail configuration

2014-12-24 Thread Ulrich Grassberger

Hi,

On 12/20/14 21:48, Vijay Sankar wrote:
I would like to try to help -- but not sure that I have understood 
your problem correctly, so here is a guess.




To clarify: Out of the box OpenBSD5.6 uses 
/usr/share/sendmail/cf/openbsd-localhost.mc as the config source for its 
mail system. This file defines LOCALHOST_ONLY and includes 
openbsd-proto.mc. So i am advised to compile a modified version of 
openbsd-proto.mc, right?


There, i can define SMART_HOST which relays all outgoing mail to a 
certain server. But is sendmail.cf not used for all local users? So 
what, if different users need different relays?



Do you have a DNS entry that shows your OpenBSD IP as the valid MX 
record for your domain? If not, probably the remote mail server is 
rejecting email from your server. Or may be of the remote email server 
is authoritative for your domain then it is not set up to accept email 
relayed through your server.


I am thinking that if there are no DNS issues, then you can use the 
default sendmail.cf, edit mailertable to send everything for your 
domain.com to the remote mail server and it should work.


I do not have a static IP but am dialing up. My mother and i each have 
an account at a certain mail server, one for me and a different one for 
my mother -- servers which store mail meant for and send it to us, when 
connect via IMAP or POP3. We also want to relay outgoing mail thru those 
mail servers.


My problem is, that I am trying to archieve that using $mail, not 
Thunderbird. But wait: I used to have four instances of smtpd running on 
the computer, but after i installed Thunderbird i now have seven. When i 
now try $mail -s test grasso...@versanet.de, i can send a message. But 
delivery fails because the sender is 1000@localhost, while it should be 
grasso...@versanet.de


Cut short, my problem: Noone of OpenBSD helped the possibility, that 
someone on dial-up uses $mail.


Uli



Re: Simple sendmail configuration

2014-12-24 Thread Bryan Steele
On Wed, Dec 24, 2014 at 09:59:27PM +0100, Ulrich Grassberger wrote:
 Hi,
 
 On 12/20/14 21:48, Vijay Sankar wrote:
 I would like to try to help -- but not sure that I have understood your
 problem correctly, so here is a guess.
 
 
 To clarify: Out of the box OpenBSD5.6 uses
 /usr/share/sendmail/cf/openbsd-localhost.mc as the config source for its
 mail system. This file defines LOCALHOST_ONLY and includes openbsd-proto.mc.
 So i am advised to compile a modified version of openbsd-proto.mc, right?

Except that, no, it doesn't. OpenBSD 5.6 uses smtpd(8) as the default
MTA and not sendmail. The only configuration file, save for aliases,
is /etc/mail/smtpd.conf.

 Cut short, my problem: Noone of OpenBSD helped the possibility, that
 someone on dial-up uses $mail.

What?

Please read smtpd.conf(5).

-Bryan.



Simple sendmail configuration

2014-12-20 Thread grasso...@versanet.de
Hello,

i installed OpenBSD5.6 on a laptop, because Windows is too insecure and
commercial, and Linux is too radical. I am trying to use $mail for receiving and
sending e-mails over the remote e-mail account at my internet service provider.
With the default sendmail configuration, i can mail only locally. So i rewrote
the config with masquerading but could not figure out how to link local users to
their remote mail accounts. And i made a mistake, for now local mailing is also
broken.

I figure, that there are many people like me trying to hack a bit but unwilling
to get a master degree in Unix administration or to ask a Linux nerd. So I would
love to see a sample sendmail config for the stuff that is configured that
easily in Thunderbird.

Cheers,
Uli Grassberger



Re: Simple sendmail configuration

2014-12-20 Thread Bryan Steele
On Sat, Dec 20, 2014 at 05:23:06PM +0100, grasso...@versanet.de wrote:
 Hello,
 
 i installed OpenBSD5.6 on a laptop, because Windows is too insecure and
 commercial, and Linux is too radical. I am trying to use $mail for receiving 
 and
 sending e-mails over the remote e-mail account at my internet service 
 provider.
 With the default sendmail configuration, i can mail only locally. So i rewrote
 the config with masquerading but could not figure out how to link local users 
 to
 their remote mail accounts. And i made a mistake, for now local mailing is 
 also
 broken.
 
 I figure, that there are many people like me trying to hack a bit but 
 unwilling
 to get a master degree in Unix administration or to ask a Linux nerd. So I 
 would
 love to see a sample sendmail config for the stuff that is configured that
 easily in Thunderbird.
 
 Cheers,
 Uli Grassberger

OpenSMTPD is the new default MTA in 5.6, perhaps you would find that
easier to setup.. sendmail is moving to the ports tree for 5.7.

man 8 smtpd
man 8 smtpctl
man 5 smtpd.conf

-Bryan.



Re: Simple sendmail configuration

2014-12-20 Thread Vijay Sankar

Quoting grasso...@versanet.de grasso...@versanet.de:


Hello,

i installed OpenBSD5.6 on a laptop, because Windows is too insecure and
commercial, and Linux is too radical. I am trying to use $mail for  
receiving and
sending e-mails over the remote e-mail account at my internet  
service provider.
With the default sendmail configuration, i can mail only locally. So  
i rewrote
the config with masquerading but could not figure out how to link  
local users to
their remote mail accounts. And i made a mistake, for now local  
mailing is also

broken.

I figure, that there are many people like me trying to hack a bit  
but unwilling
to get a master degree in Unix administration or to ask a Linux  
nerd. So I would

love to see a sample sendmail config for the stuff that is configured that
easily in Thunderbird.

Cheers,
Uli Grassberger




Hi,

I would like to try to help -- but not sure that I have understood  
your problem correctly, so here is a guess.


Do you have a DNS entry that shows your OpenBSD IP as the valid MX  
record for your domain? If not, probably the remote mail server is  
rejecting email from your server. Or may be of the remote email server  
is authoritative for your domain then it is not set up to accept email  
relayed through your server.


I am thinking that if there are no DNS issues, then you can use the  
default sendmail.cf, edit mailertable to send everything for your  
domain.com to the remote mail server and it should work.



Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
vsan...@foretell.ca

-
This message was sent using ForeTell-POST 4.9