Author Topic: [SOLVED]Open relay?  (Read 2689 times)

LinuxRocks

  • Zen Apprentice
  • *
  • Posts: 36
  • Karma: +0/-0
    • View Profile
[SOLVED]Open relay?
« on: December 07, 2011, 04:16:53 am »
Hi All,

I just set up my server and have set them  up before, so I do understand the process. However, this time, I noticed some warnings in my mail.log file that I have not seen before.

First, a little on how my server is set up.

Server is a workgroup server for my home. I have a domain name and an mx record from an external company that points to the ip of my server. I relay mail to a smart host that I pay for.

When I sent mail to my sister, Karen, or anyone else for that matter, I see these in the mail.log:

amavis[21216]: (21216-09) Open relay? Nonlocal recips but not originating: karen@work.com (work.com is a pseudo for her business e-mail address).

Now, the mail will go through just fine, but these warnings are annoying. Any way to silence them?

I have tested my mail server to see if it was an open relay, but it passed all the tests that were thrown at it.

Here is a list of server specs:

Fully updated.

Code: [Select]
dpkg -l |grep zentyal
ii  asterisk                             1:1.8.3.3-1ubuntu1+zentyal1              Open Source Private Branch Exchange (PBX)
ii  asterisk-config                      1:1.8.3.3-1ubuntu1+zentyal1              Configuration files for Asterisk
ii  asterisk-modules                     1:1.8.3.3-1ubuntu1+zentyal1              loadable modules for the Asterisk PBX
ii  asterisk-sounds-main                 1:1.8.3.3-1ubuntu1+zentyal1              Core Sound files for Asterisk (English)
ii  asterisk-voicemail                   1:1.8.3.3-1ubuntu1+zentyal1              simple voicemail support for the Asterisk PB
ii  duplicity                            0.6.13-0ubuntu1+zentyal1                 encrypted bandwidth-efficient backup
ii  l7-filter-userspace                  0.11-4+zentyal                           Userspace layer 7 packet classifier
ii  libhtml-mason-perl                   1:1.44-1+zentyal1                        HTML::Mason Perl module
ii  libjs-jquery                         1.5-2ubuntu1+zentyal1                    JavaScript library for dynamic web applicati
ii  liblog-any-perl                      0.11-1+zentyal1                          Log anywhere
ii  libredis-perl                        2:2.0.1-0ubuntu1+zentyal1                persistent key-value database with network i
ii  p3scan                               2:2.3.2-7ubuntu1+zentyal2                transparent POP3-proxy with virus- and spam-
ii  php-mail-mime                        1.8.0-2+zentyal1                         PHP PEAR module for creating MIME messages
ii  php-net-smtp                         1.4.2-3+zentyal1                         PHP PEAR module implementing SMTP protocol
ii  roundcube                            0.5.3+dfsg-1+zentyal1                    skinnable AJAX based webmail solution for IM
ii  roundcube-core                       0.5.3+dfsg-1+zentyal1                    skinnable AJAX based webmail solution for IM
ii  roundcube-pgsql                      0.5.3+dfsg-1+zentyal1                    metapackage providing PostgreSQL dependencie
ii  roundcube-plugins                    0.5.3+dfsg-1+zentyal1                    skinnable AJAX based webmail solution for IM
ii  roundcube-sqlite                     0.5.3+dfsg-1+zentyal1                    metapackage providing sqlite dependencies fo
ii  zentyal                              2.2                                      Zentyal - Core metapackage
ii  zentyal-antivirus                    2.2                                      Zentyal - Antivirus
ii  zentyal-asterisk                     2.2                                      Zentyal - VoIP
ii  zentyal-ca                           2.2.2                                    Zentyal - Certification Authority
ii  zentyal-common                       2.2.2                                    Zentyal - Common Library
ii  zentyal-communication                2.2                                      Zentyal - Communications Suite
ii  zentyal-core                         2.2.4                                    Zentyal - Core
ii  zentyal-dhcp                         2.2.1                                    Zentyal - DHCP Service
ii  zentyal-dns                          2.2.1                                    Zentyal - DNS Service
ii  zentyal-ebackup                      2.2.2                                    Zentyal - Backup
ii  zentyal-firewall                     2.2                                      Zentyal - Firewall
ii  zentyal-ftp                          2.2.1                                    Zentyal - FTP
ii  zentyal-gateway                      2.2                                      Zentyal - Gateway Suite
ii  zentyal-ids                          2.2                                      Zentyal - Intrusion Detection System
ii  zentyal-infrastructure               2.2                                      Zentyal - Network Infrastructure Suite
ii  zentyal-jabber                       2.2                                      Zentyal - Jabber (Instant Messaging)
ii  zentyal-l7-protocols                 2.2                                      Zentyal - Layer-7 Filter
ii  zentyal-mail                         2.2.1                                    Zentyal - Mail Service
ii  zentyal-mailfilter                   2.2                                      Zentyal - Mail Filter
ii  zentyal-monitor                      2.2.1                                    Zentyal - Monitor
ii  zentyal-network                      2.2.3                                    Zentyal - Network Configuration
ii  zentyal-ntp                          2.2                                      Zentyal - NTP Service
ii  zentyal-objects                      2.2                                      Zentyal - Network Objects
ii  zentyal-office                       2.2                                      Zentyal - Office Suite
ii  zentyal-openvpn                      2.2                                      Zentyal - VPN Service
ii  zentyal-pptp                         2.2                                      Zentyal - PPTP
ii  zentyal-printers                     2.2                                      Zentyal - Printer Sharing Service
ii  zentyal-remoteservices               2.2.2                                    Zentyal - Cloud Client
ii  zentyal-samba                        2.2                                      Zentyal - File Sharing Service
ii  zentyal-security                     2.2                                      Zentyal - UTM Suite
ii  zentyal-services                     2.2                                      Zentyal - Network Services
ii  zentyal-software                     2.2.2                                    Zentyal - Software Management
ii  zentyal-squid                        2.2.1                                    Zentyal - HTTP Proxy (Cache and Filter)
ii  zentyal-trafficshaping               2.2                                      Zentyal - Traffic Shaping
ii  zentyal-usercorner                   2.2                                      Zentyal - User Corner
ii  zentyal-users                        2.2.4                                    Zentyal - Users and Groups
ii  zentyal-webmail                      2.2                                      Zentyal - Web Mail Service
ii  zentyal-webserver                    2.2.2                                    Zentyal - Web Server

Please let me know if you need any additional information.

Thanks!
Joe

« Last Edit: December 09, 2011, 07:30:47 pm by LinuxRocks »

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: Open relay?
« Reply #1 on: December 08, 2011, 11:02:47 am »
Probably that only means that the domain on your from header is not local, neither it is the one in the recipient. Should be fine.

LinuxRocks

  • Zen Apprentice
  • *
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Open relay?
« Reply #2 on: December 08, 2011, 02:09:53 pm »
Thanks for the reply!

Yeah, I don't see any issues with sending/receiving mail, but wanted to know if it could be stopped.

There are some articles online about it and how to fix, but not sure about just modifying config files especially since Zentyal manages these files.

Anyway, thanks for replying!

Joe