mail relay

Hello all,

I’m looking to setup a simple mail relay using openSuse 11.0. I have
found countless threads and documentation, but I think I may be
over-thinking this a bit.

This will just be used for things like mail alerts from servers,
storage devices, printers, etc. Sending to an outside exchange server.

I am fairly new to suse/linux. What do I really need? I believe I can
do this with just postfix?

Thanks in advance for any help!


an0ther

an0ther’s Profile: http://forums.opensuse.org/member.php?userid=17956
View this thread: http://forums.opensuse.org/showthread.php?t=402707

That’s trivial, just configure postfix to relay to an external server
and to accept mail from all interfaces (so that other machines on your
subnet can use it). This can be done using the YaST postfix
configuration.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=402707

I’m getting this error in /var/log/mail.

NOQUEUE: reject: RCPT from unknown[10.22.22.9]: 554 5.7.1
<user@blah.com>: Relay access denied; from=<user@blah.com>
to=<user@blah.com> proto=SMTP helo
=<TeraStation>

not sure what I’m doing wrong.
I’ve configured only the myhostname, mydomain and mydestination
variables in main.cf.

any suggestions?


an0ther

an0ther’s Profile: http://forums.opensuse.org/member.php?userid=17956
View this thread: http://forums.opensuse.org/showthread.php?t=402707

You have to allow your LAN machines to use the mail server. I’m not in
front of a 11.1 machine at the moment so I can’t tell you where it is in
YaST but you have to allow it with mynetworks_style=“subnet” in
/etc/postfix/main.cf. It may be at “host” at the moment.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=402707

I had to use mynetworks_style=“class” bc my relay server and devices are
on different VLAN’s, but its working now.

Now that I have a feel for this I think I will lock it down by specific
IP.

I’ve been tweaking the files rather than using YAST, may as well learn
linux the correct way, right? haha

thanks for your help!!


an0ther

an0ther’s Profile: http://forums.opensuse.org/member.php?userid=17956
View this thread: http://forums.opensuse.org/showthread.php?t=402707

No that’s fine, you can edit main.cf yourself. But YaST will no longer
control the config once you change main.cf manually. It is possible to
control everything, perhaps slightly indirectly by editing
/etc/sysconfig/postfix.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=402707

Good to know, thanks.


an0ther

an0ther’s Profile: http://forums.opensuse.org/member.php?userid=17956
View this thread: http://forums.opensuse.org/showthread.php?t=402707