Re: Please help greenhorn to send email.

2015-10-29 Thread Raf Czlonka
On Thu, Oct 29, 2015 at 04:43:55PM GMT, tomaszdro...@interia.eu wrote:
> Hallo opensmtpd mail list :-)

Hi Tomasz,

You already received an answer to your main question, I'll just comment
on some of our configuration.

> I must say that I am "email server" greenhorn.

Could you be more specific, please? What do you mean by "email server"?
Do you want to use it only to send mail or receive, too?

> I have liked it just after seeing one configuration line with: "accept
> from ...". Way of configuring opensmtpd seams to me be modern, simple
> and easiest of all smtp servers :-)

I very much agree with you here here - well, I think we all, on this
mailing list, do ;^)

> B) ip addr
> 
> 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
> default 
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
>valid_lft forever preferred_lft forever
> inet6 ::1/128 scope host 
>valid_lft forever preferred_lft forever
> 2: enp0s3:  mtu 1500 qdisc pfifo_fast state 
> UP group default qlen 1000
> link/ether 08:00:27:6f:f9:22 brd ff:ff:ff:ff:ff:ff
> inet 172.29.2.101/19 brd 172.29.31.255 scope global dynamic enp0s3
>valid_lft 570826sec preferred_lft 570826sec
> inet6 fe80::a00:27ff:fe6f:f922/64 scope link 
>valid_lft forever preferred_lft forever
> 6: enp0s11u1:  mtu 1500 qdisc pfifo_fast 
> state UNKNOWN group default qlen 1000
> link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff
> inet 192.168.8.100/24 brd 192.168.8.255 scope global dynamic enp0s11u1
>valid_lft 52421sec preferred_lft 52421sec
> inet6 fe80::e5b:8fff:fe27:9a64/64 scope link 
>valid_lft forever preferred_lft forever
> 
> 3) My opensmtp:
> 
> A) /etc/opensmtpd/smtpd.conf
> 
> listen on lo
> listen on enp0s3
> listen on enp0s11u1
> 
> accept from local for any relay

If the answer to the above question is "only sent mail from that VM", a
more appropriate configuration would be:

listen on lo

If you are in fact planning on receiving mail on that machine, you can
shorten the above to:

listen on all

You can also limit the listening to inet4 or inet6 family of addresses
if you wish to.

Regards,

Raf

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Please help greenhorn to send email.

2015-10-29 Thread Giovanni Bechis
tomaszdro...@interia.eu ha scritto:
>Hallo opensmtpd mail list :-)
>
>I must say that I am "email server" greenhorn.
>I also do not have much experience in net configuration.
>
>I want to have email server that will allow me to send emails from my
>linux.
>I search internet (sendmail, qmail, exim, postfix, ...) and luckily
>found OPENSMTPD :-)
>I have liked it just after seeing one configuration line with: "accept
>from ...".
>Way of configuring opensmtpd seams to me be modern, simple and easiest
>of all smtp servers :-)
>
>As I wrote I am greenhorn and have problem.
>
>
>
>1) My system info:
>
>A) I run:
>Operating System: Fedora 21 (Twenty One)
>CPE OS Name: cpe:/o:fedoraproject:fedora:21
>Kernel: Linux 4.1.8-100.fc21.x86_64
>Architecture: x86-64
>
>on Virtual box.
>
>B) dnf info opensmtpd
>
>Name: opensmtpd
>Arch: x86_64
>Version : 5.7.1p1
>Release : 1.fc21
>
>2)
>A) iptables --list
>
>Chain INPUT (policy ACCEPT)
>target prot opt source   destination 
>
>Chain FORWARD (policy DROP)
>target prot opt source   destination 
>
>Chain OUTPUT (policy ACCEPT)
>target prot opt source   destination
>
>B) ip addr
>
>1: lo:  mtu 65536 qdisc noqueue state UNKNOWN
>group default 
>link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>inet 127.0.0.1/8 scope host lo
>   valid_lft forever preferred_lft forever
>inet6 ::1/128 scope host 
>   valid_lft forever preferred_lft forever
>2: enp0s3:  mtu 1500 qdisc pfifo_fast
>state UP group default qlen 1000
>link/ether 08:00:27:6f:f9:22 brd ff:ff:ff:ff:ff:ff
>inet 172.29.2.101/19 brd 172.29.31.255 scope global dynamic enp0s3
>   valid_lft 570826sec preferred_lft 570826sec
>inet6 fe80::a00:27ff:fe6f:f922/64 scope link 
>   valid_lft forever preferred_lft forever
>6: enp0s11u1:  mtu 1500 qdisc
>pfifo_fast state UNKNOWN group default qlen 1000
>link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff
> inet 192.168.8.100/24 brd 192.168.8.255 scope global dynamic enp0s11u1
>   valid_lft 52421sec preferred_lft 52421sec
>inet6 fe80::e5b:8fff:fe27:9a64/64 scope link 
>   valid_lft forever preferred_lft forever
>
>3) My opensmtp:
>
>A) /etc/opensmtpd/smtpd.conf
>
>listen on lo
>listen on enp0s3
>listen on enp0s11u1
>
>accept from local for any relay
>
>expire 4h
>
>B) ls -laZ /var/log/maillog 
>-rw---. root root system_u:object_r:var_log_t:s0   /var/log/maillog
>
>C) ps -ef|grep smtpd
>
>root 11410 1  0 11:44 ?00:00:00 smtpd: [priv]
>smtpq11411 11410  0 11:44 ?00:00:00 smtpd: queue
>smtpd11412 11410  0 11:44 ?00:00:00 smtpd: control
>smtpd11413 11410  0 11:44 ?00:00:00 smtpd: lookup
>smtpd11414 11410  0 11:44 ?00:00:00 smtpd: scheduler
>smtpd11415 11410  0 11:44 ?00:00:00 smtpd: pony express
>smtpd11416 11410  0 11:44 ?00:00:00 smtpd: klondike
>
>4) mailx -s "hello" "tomaszdro...@interia.eu"
>
>5) Problems
>
>A) sudo smtpctl show queue
>
>c823c60ac80192be|local|mta|auth|@|tomek@se-gips|tomek@se-gips|1446115579|1446461179|0|8|invalid||Temporary
>failure in MX lookup
>
>B) /var/log/maillog
>is empty
>
>Why I can not send email ?
>Why log file is empty ?
>
>
>Please help if you can.
>If you need more information I will provide it.

Your  server cannot resolve se-gips domain, check your host name and your 
resolver configuration. 
  Cheers
 Giovanni

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Please help greenhorn to send email.

2015-10-29 Thread tomaszdrozdz
Hallo opensmtpd mail list :-)

I must say that I am "email server" greenhorn.
I also do not have much experience in net configuration.

I want to have email server that will allow me to send emails from my linux.
I search internet (sendmail, qmail, exim, postfix, ...) and luckily found 
OPENSMTPD :-)
I have liked it just after seeing one configuration line with: "accept from 
...".
Way of configuring opensmtpd seams to me be modern, simple and easiest of all 
smtp servers :-)

As I wrote I am greenhorn and have problem.



1) My system info:

A) I run:
Operating System: Fedora 21 (Twenty One)
CPE OS Name: cpe:/o:fedoraproject:fedora:21
Kernel: Linux 4.1.8-100.fc21.x86_64
Architecture: x86-64

on Virtual box.

B) dnf info opensmtpd

Name: opensmtpd
Arch: x86_64
Version : 5.7.1p1
Release : 1.fc21

2)
A) iptables --list

Chain INPUT (policy ACCEPT)
target prot opt source   destination 

Chain FORWARD (policy DROP)
target prot opt source   destination 

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination

B) ip addr

1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
default 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: enp0s3:  mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 08:00:27:6f:f9:22 brd ff:ff:ff:ff:ff:ff
inet 172.29.2.101/19 brd 172.29.31.255 scope global dynamic enp0s3
   valid_lft 570826sec preferred_lft 570826sec
inet6 fe80::a00:27ff:fe6f:f922/64 scope link 
   valid_lft forever preferred_lft forever
6: enp0s11u1:  mtu 1500 qdisc pfifo_fast state 
UNKNOWN group default qlen 1000
link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff
inet 192.168.8.100/24 brd 192.168.8.255 scope global dynamic enp0s11u1
   valid_lft 52421sec preferred_lft 52421sec
inet6 fe80::e5b:8fff:fe27:9a64/64 scope link 
   valid_lft forever preferred_lft forever

3) My opensmtp:

A) /etc/opensmtpd/smtpd.conf

listen on lo
listen on enp0s3
listen on enp0s11u1

accept from local for any relay

expire 4h

B) ls -laZ /var/log/maillog 
-rw---. root root system_u:object_r:var_log_t:s0   /var/log/maillog

C) ps -ef|grep smtpd

root 11410 1  0 11:44 ?00:00:00 smtpd: [priv]
smtpq11411 11410  0 11:44 ?00:00:00 smtpd: queue
smtpd11412 11410  0 11:44 ?00:00:00 smtpd: control
smtpd11413 11410  0 11:44 ?00:00:00 smtpd: lookup
smtpd11414 11410  0 11:44 ?00:00:00 smtpd: scheduler
smtpd11415 11410  0 11:44 ?00:00:00 smtpd: pony express
smtpd11416 11410  0 11:44 ?00:00:00 smtpd: klondike

4) mailx -s "hello" "tomaszdro...@interia.eu"

5) Problems

A) sudo smtpctl show queue

c823c60ac80192be|local|mta|auth|@|tomek@se-gips|tomek@se-gips|1446115579|1446461179|0|8|invalid||Temporary
 failure in MX lookup

B) /var/log/maillog
is empty

Why I can not send email ?
Why log file is empty ?


Please help if you can.
If you need more information I will provide it.

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org