Postfix troubles

Ask here for help - and if the problem is solved, it goes to the ==> Knowledge Base!
Post Reply
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Postfix troubles

Post by Bugo »

Hi there!

I've got some serious trouble with postfix.

What I'm trying to do:
Postfix with SMTP-Autentifcation, Multidomain, accepting from every IP.

My Setup: rootDS account with [netclusive], running Fedora Core 4.

After using a howto from the HowToForge, which got me nowhere, I started looking for another one, that was easier to understand:
http://www.pl-forum.de/berichte/postfix-smtp-auth.html

I didn't use the installation as suggested, though. I installed the rpms with yum.

But I used the config as suggested, which is:
main.cf:
----------

Code: Select all

 # The queue_directory specifies the location of the Postfix queue.
queue_directory = /var/spool/postfix
# The command_directory parameter specifies the location of all
# postXXX commands.
command_directory = /usr/sbin
# The daemon_directory parameter specifies the location of all Postfix
# daemon programs
daemon_directory = /usr/libexec/postfix
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.
mail_owner = postfix
# The myhostname parameter specifies the internet hostname of this
# mail system.
myhostname = mail.sportreferat.at
# The mydomain parameter specifies the local internet domain name.
mydomain = sportreferat.at
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from.
myorigin = $mydomain
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.
inet_interfaces = $myhostname
# inet_interfaces = all # Wenn der Mailserver für mehrere Domains
#zuständig sein soll
# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
mydestination = $myhostname, localhost.$mydomain, $mydomain
# The mynetworks parameter specifies the list of "trusted"
#SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay
#mail
# through Postfix.
# Hier kann man dann auch um das interne Netzwerk erweitern.
# So wie es hier ist braucht jeder Client ein Passwort. Ist aber gut zum
#Testen.
# Du kannst auch noch etwas wie 192.168.40.0/24 einfügen. Dann dürfen alle
#Rechner
#aus
# diesem Netzwerk auch Mails ohne Passwort versenden.
mynetworks = 127.0.0.0/8
# The relay_domains parameter restricts what clients this mail system
# will relay mail from, or what destinations this system will relay
# mail to.
relay_domains = $mydomain
# Erlaube sasl-authentifizierte Clients, die aus mynetworks und die aus
#relay_domains
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent.
alias_maps = hash:/etc/postfix/aliases
debug_peer_level = 2
debugger_command =
    PATH=/usr/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5
# sendmail_path: The full pathname of the Postfix sendmail command.
sendmail_path = /usr/sbin/sendmail.postfix
# newaliases_path: The full pathname of the Postfix newaliases command.
newaliases_path = /usr/bin/newaliases.postfix
# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
mailq_path = /usr/bin/mailq.postfix
# setgid_group: The group for mail submission and queue management
# commands.
setgid_group = postdrop
# manpage_directory: The location of the Postfix on-line manual pages.
manpage_directory = /usr/share/man
# sample_directory: The location of the Postfix sample configuration
#files.
sample_directory = /etc/postfix/samples
# readme_directory: The location of the Postfix README files.
readme_directory = /etc/postfix/readme
best_mx_transport = local
# SASL SUPPORT FOR CLIENT
#
# The following options set parameters needed by Postfix to enable
# Cyrus-SASL support for authentication of mailclients.
#
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

The master.cf is as follows:

Code: Select all

#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd -v
#submission inet n      -       n       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#	-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache	  unix	-	-	n	-	1	scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
I can't send or receive mail and when I try to connect remotely via telnet on port 25, I get a connection refused although the firewall is open as hell for testing reasons. When trying to connect locally with telnet from the console, I get a connection, but no server response.

Postfix is running, though:

Code: Select all

[root@v985 stefan]# ps aux | grep postfix
root      5968  0.0  0.3  17828  6600 ?        S    15:15   0:00 /usr/libexec/webmin/postfix/index.cgi
root      6032  0.0  0.3  17824  6560 ?        S    15:16   0:00 /usr/libexec/webmin/postfix/index.cgi
root      7372  0.0  0.2  17828  5344 ?        S    15:20   0:00 /usr/libexec/webmin/postfix/index.cgi
root      7660  0.0  0.3  17832  7048 ?        S    15:21   0:00 /usr/libexec/webmin/postfix/index.cgi
root      7697  0.0  0.2  17832  5724 ?        S    15:22   0:00 /usr/libexec/webmin/postfix/index.cgi
root     11671  0.0  0.0   5584  1720 ?        Ss   15:37   0:00 /usr/libexec/postfix/master
postfix  11675  0.0  0.0   5636  1592 ?        S    15:37   0:00 pickup -l -t fifo -u
postfix  11676  0.0  0.0   5688  1532 ?        S    15:37   0:00 qmgr -l -t fifo -u
postfix  14330  0.0  0.0   5592  1480 ?        S    15:40   0:00 proxymap -t unix -u
Please help, as I get calls from my boss every day concerning the state of the server... and I don't know enough of mail servers
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

sorry...

Post by ^rooker »

Unfortunately: Setting up a super-duper Mailserver was always on our Werkstatt TODO list, but we haven't got one until today (Well, that's not exactly true: Gil's working on setting one up - but I'm not sure about it's status)

Long story short:
Maybe Gil can help! :)

for now I can only tell you to forget the connections from outside until the direct (localhost) connection works!

- When you connected locally, have you tried to input something? Maybe your server doesn't say hello before you do! (try: "HELO mydomain.com" for example)
- AND: What do the logs say? Is the server starting up without problems? Because seeing the process running doesn't mean it's actually made it beyond reading the config!
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

Actually, I first asked Gil and he chided me for not using the forums as I should do. :-) He's already looking into it.

I will post the logs a little later and will tell you the results of my experiments...
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

...can't connect to server locally any more. didn't do anything since yesterday though...

Code: Select all

[root@v985 ~]# telnet mail.sportreferat.at 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@v985 ~]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@v985 ~]#
Logs show nothing. Neither in var/log/messages nor in /var/log/maillog. The first just shows that I logged onto the server as user *whatever* and the second just shows my Outlook connecting to the pop3.
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Hm

Post by gilthanaz »

Theres definitly stuff missing in this config file of yours. I will just strip my config from comments and post it... its not done by any means yet, but it works ;)

Might take a while, i have to do work and stuff, too ;)
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Hm

Post by gilthanaz »

I really can't see how this config you pasted above could ever work. Of course, i did not read the full 2000 pages manuals on sendmail, procmail, postfix and whatever, so i might be wrong. But this (see code window) for example makes no sense...

Code: Select all

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.
inet_interfaces = $myhostname
Okay... so... what has an interface to do with a hostname... besides nothing. Maybe it does some weird magic, but i dont think so.

Our Mailserver has several interfaces (eth0, eth1, eth[...], wlan0, ppp0), and thus i have 'inet_interfaces = all' there.

As you sure noticed, none of my interfaces is named like a domain... so probably yours are not either. For testing, put 'all' instead of $myhostname. Can you dump me a 'ifconfig' here as well, please?

And here is something else that puzzles me:

Code: Select all

mynetworks = 127.0.0.0/8
relay_domains = $mydomain
Here, the 'mynetworks' entry looks like ... well... very wrong for me. In this case, the only network the server would allow e-mail from would be the loopback, unless you REALLY have a network 127.0.0.* ..

Have to think about this, continue in a bit....
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

Hi again,

first of all: here's the result of ifconfig:

Code: Select all

[root@v985 ~]# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10648048 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10648048 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1495861350 (1.3 GiB)  TX bytes:1495861350 (1.3 GiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:805537 errors:0 dropped:0 overruns:0 frame:0
          TX packets:635855 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:547098330 (521.7 MiB)  TX bytes:88312157 (84.2 MiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:89.110.147.234  P-t-P:89.110.147.234  Bcast:89.110.147.234  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
And I was VERY surprised to find this:

Code: Select all

top - 16:05:51 up 13 days, 37 min,  2 users,  load average: 4.50, 2.75, 1.84
Tasks:  44 total,   3 running,  36 sleeping,   0 stopped,   5 zombie
Cpu(s): 24.6% us, 26.0% sy,  0.0% ni,  0.0% id, 49.4% wa,  0.0% hi,  0.0% si
Mem:   2051064k total,  2043456k used,     7608k free,    12004k buffers
Swap: 20482864k total,  2249044k used, 18233820k free,   304044k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20216 root      25   0  6064  584 3056 R 99.9  0.0  14746:47 perl
24496 root      16   0  1952 1004 1740 R  0.3  0.0   0:00.04 top
    1 root      16   0  1672  144 1472 S  0.0  0.0   0:00.54 init
13781 root      15   0  1544  260 1372 D  0.0  0.0   0:03.74 syslogd
13805 named     18   0 40016  420 4972 S  0.0  0.0   0:00.00 named
13823 root      16   0  4320  336 3944 S  0.0  0.0   0:01.57 sshd
13835 root      15   0  2100  204 1768 S  0.0  0.0   0:00.27 xinetd
13847 root      16   0  3988   68 3784 S  0.0  0.0   0:00.01 vsftpd
13924 root      17   0  2228   80 2036 S  0.0  0.0   0:00.00 mysqld_safe
13962 mysql     16   0  109m 1164  10m S  0.0  0.1   0:00.16 mysqld
14030 root      16   0  2496  164 1568 S  0.0  0.0   0:00.06 crond
14040 root      18   0  4356   88 4008 S  0.0  0.0   0:00.00 saslauthd
14052 root      16   0  9712  912 5744 S  0.0  0.0   0:00.50 miniserv.pl
11499 root      16   0 15512  372  13m S  0.0  0.0   0:00.51 httpd
15907 root      15   0 14616  444 5776 S  0.0  0.0   0:02.20 miniserv.pl
20215 root      18   0  2224   88 2036 S  0.0  0.0   0:00.00 sh
Perl läuft auf 99.9%??? Warum? Ich starte mal den Rechner neu. Da lief jetzt sogar SSH nur mehr sehr laggy. Geschweige denn Webmin. Und vor allem scheint der Prozess schon verdammt lange zu laufen.

Das mit den Interfaces hört sich extrem vernünftig an. In der Config-file, die ich vorher hatte, war da auch "all". Nachdem das Ding ja dann mit SMTP-AUTH abgesichert werden soll, könnte ich ja als mynetworks 0.0.0.0 nehmen, oder? 0.0.0.0/??

EDIT: eh, sorry, will translate it later, if possible. Was just so surprised that my first thoughts were in good old German.
Last edited by Bugo on Thu Oct 19, 2006 4:08 pm, edited 1 time in total.
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

Nach Neustart war das Ding wieder auf 99.9%. Hä?

Code: Select all

[root@v985 ~]# top
top - 16:14:24 up 13 days, 46 min,  2 users,  load average: 5.52, 4.32, 2.93
Tasks:  27 total,   3 running,  24 sleeping,   0 stopped,   0 zombie
Cpu(s): 50.0% us, 50.0% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   2051064k total,  1823988k used,   227076k free,    50760k buffers
Swap: 20482864k total,  2182720k used, 18300144k free,   520460k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
29712 root      15   0  1952 1004 1740 R 99.9  0.0   0:00.03 top
20216 root      25   0  6064  584 3056 R 99.9  0.0  14755:13 perl
    1 root      16   0  1672  420 1472 S  0.0  0.0   0:00.54 init
13781 root      15   0  1544  280 1372 S  0.0  0.0   0:03.77 syslogd
.
.
.
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Hm

Post by gilthanaz »

Try using 'lsof | grep perl' - this should show you all open files that are in use by perl.

You can also try to stop one service after another... and if you stop a specific service, and perl dies with it, then you have your evil bastardo.

As for the ifconfig... now, thats some funny ip's there. Probably ^rooker has seen that kind of network so far.

And yeah, as you do smtp auth anyway, you can use all on both interfaces. Check the manpage for postfix or somet tutorial what the correct syntax is to feed it all IP's... i kinda doubt its 0.0.0.0/0, even tho its possible.
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

Code: Select all

[root@v985 ~]# lsof | grep perl
miniserv. 32629    root  txt    REG              0,148    12980  114601183 /usr/bin/perl
miniserv. 32629    root  mem    REG              0,148  1342960   53780632 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so
miniserv. 32629    root  mem    REG              0,148    20940  114623864 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/Socket/Socket.so
miniserv. 32629    root  mem    REG              0,148   121640  121331715 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/POSIX/POSIX.so
miniserv. 32629    root  mem    REG              0,148    12296  114623856 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/Fcntl/Fcntl.so
miniserv. 32629    root  mem    REG              0,148   360032  121724936 /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/Net/SSLeay/SSLeay.so
miniserv. 32629    root  mem    REG              0,148    33704  114623863 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/SDBM_File/SDBM_File.so
miniserv. 32636    root  txt    REG              0,148    12980  114601183 /usr/bin/perl
miniserv. 32636    root  mem    REG              0,148  1342960   53780632 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/CORE/libperl.so
miniserv. 32636    root  mem    REG              0,148    20940  114623864 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/Socket/Socket.so
miniserv. 32636    root  mem    REG              0,148   121640  121331715 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/POSIX/POSIX.so
miniserv. 32636    root  mem    REG              0,148    12296  114623856 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/Fcntl/Fcntl.so
miniserv. 32636    root  mem    REG              0,148   360032  121724936 /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/Net/SSLeay/SSLeay.so
miniserv. 32636    root  mem    REG              0,148     6292  114623889 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/Sys/Hostname/Hostname.so
miniserv. 32636    root  mem    REG              0,148    14424  114623890 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/Sys/Syslog/Syslog.so
miniserv. 32636    root  mem    REG              0,148    33704  114623863 /usr/lib/perl5/5.8.6/i386-linux-thread-multi/auto/SDBM_File/SDBM_File.so
[root@v985 ~]#
strange... now the process is gone. I can connect to the server normally:

Code: Select all

top - 01:08:13 up  8:51,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  24 total,   1 running,  23 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 100.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   2051064k total,  2000788k used,    50276k free,    49980k buffers
Swap: 20482864k total,  2009744k used, 18473120k free,   714908k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      16   0  1672  152 1472 S  0.0  0.0   0:00.03 init
32289 root      15   0  1544  244 1372 S  0.0  0.0   0:00.01 syslogd
32311 named     24   0 40016  744 4972 S  0.0  0.0   0:00.00 named
32336 root      16   0  4320  716 3944 S  0.0  0.0   0:00.00 sshd
I will have to check the CRON jobs.

btw: Gil, hope you didn't forget, that I'm coming to your Kuhdorf on sunday...
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

ok, the following cron jobs are being done:
/etc/cron.daily/makewhatis.cron
/etc/cron.daily/logrotate
/etc/cron.daily/slocate.cron
/etc/cron.daily/rpm
/etc/cron.daily/tmpwatch
/etc/cron.daily/yum.cron
/etc/cron.daily/apt.cron
/etc/cron.daily/00webalizer
/etc/cron.weekly/makewhatis.cron
/etc/cron.weekly/yum.cron

And I can't see what would have triggered perl. And the interesting thing is that the weekly cron jobs are being tun on sunday and the daily at 1:38 am in the morning. Hmmm... When I noticed the troubles it was like 3 pm in the afternoon on a wednesday
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

so, changes the inet_interfaces to "all", restarted the server, still no luck. tried to send mail from localhost to a user on localhost:

Code: Select all

[root@v985 ~]# mail stefan
Subject: testmail von localhost
dfsdfsdf
.
Cc:
[root@v985 ~]#
But that didn't go anywhere and it isn't even in the Mail Queue.

changing the $mynetworks to 0.0.0.0 doesn't seem such a good idea anymore, as it seems to be the addresses, that can send mail without authentification. And that should remain to be the localhost for the cases when php scripts send mail.

Code: Select all

# The mynetworks parameter specifies the list of "trusted"
#SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay
#mail
# through Postfix.
# Hier kann man dann auch um das interne Netzwerk erweitern.
# So wie es hier ist braucht jeder Client ein Passwort. Ist aber gut zum
#Testen.
# Du kannst auch noch etwas wie 192.168.40.0/24 einfügen. Dann dürfen alle
#Rechner
#aus
# diesem Netzwerk auch Mails ohne Passwort versenden.
mynetworks = 127.0.0.0/8
Bugo
Active Member
Posts: 13
Joined: Sun Jun 04, 2006 12:20 am

Post by Bugo »

reset the server to the default image and noticed they had sendmail working with SMTP-auth. Using that now.
Post Reply