Sponsored Content
Full Discussion: Postfix-postfwd testing
Top Forums UNIX for Advanced & Expert Users Postfix-postfwd testing Post 302378155 by fisfia on Monday 7th of December 2009 04:58:32 AM
Old 12-07-2009
Postfix-postfwd testing

Hi,

I'm trying to test rules set up with postfwd on postfix (under debian).

Just to try I took this rule:

Code:
id=RULE01 ; sender==user@lillefan.com ; action=REJECT not allowed

in postfwd.cf.

Restarted postfix. Postfwd is started with this command:

#postfwd -d -i 127.0.0.1 -p 10040 -u root -g root -f /etc/postfwd.cf

The rule works fine if I test it with telnet. If I try it with a script that uses mailx nothing happens. All the mail are still delivered with mailx. In telnet I am refused to send the mail.

Mailscript: (run by user, and tried to run as root too)
Code:
#!/bin/bash
i=0
while [ $i != 2500 ]; do
echo test | /bin/mail -s "test message$i" "user@lillefan.com"
i=$(( $i + 1 ))
done;

Who is recipient in the case of my script? Is that the problem? I thought if I'm user@server:~$ then "user" is recipient when I run the script?

In telnet I do this:

Code:
telnet localhost 25
mail from: user@lillefan.com
rcpt to: user2@lillefan.com
data
hello from user!
.
quit

In telnet I get this: "Recipient address rejected: not allowed". With my bash script I get all my mails delivered without protest.

I should also add that this system is not up in the network. It's just for testing. Except this problem with the postfwd rules postfix works fine and as far as I can see the logs are OK.

Grateful for any and all ideas and suggestions.
Thanks!
//fisfia
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Postfix

I can send email. I just can't receive email I am getting and error Permanent Failure: 554_Transaction_failed. All the services are running. I can telnet to 110 25 143. I am also running Imap. I can send and receive email internally I can send email outside of my network I can't receive emails... (3 Replies)
Discussion started by: rbizzell
3 Replies

2. UNIX for Advanced & Expert Users

Postfix 2.3.

When I use the postalias command I am getting an error that says no mapping in /etc/mail/mailer.conf. I am running FreeBsd 6.1 and in my main.cf I have my alias database is alias_maps= hash:/etc/mail/aliases I tried the command two different ways /usr/local/sbin/postalias /etc/mail/aliases... (2 Replies)
Discussion started by: rbizzell
2 Replies

3. Linux

postfix

hi when I telnet to my machine on port 25 and send an email to myself, the machine sends the email to the old corporate mail server instead of the new corporate mail server. how to change that so that any email sent from my linux box goes directly to the new mail server? thx (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

4. UNIX for Dummies Questions & Answers

postfix

I have a strange problem I have a solaris 8 machine which sends me an email to my outlook every night about the status of the system. The end of this script looks like this mailx -s "$TITLE" mrxyz@mycompany.com < $TMPF and it is working fine My problem is when i just use mailx... (1 Reply)
Discussion started by: Tirmazi
1 Replies

5. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies

6. Solaris

Postfix

recently installed postfix on Solaris 10 but can not find the folder where you install the application to set the default main.cf postfix brings. solaris that saves the configuration part of the applications that are installed. thank (4 Replies)
Discussion started by: cejodrake
4 Replies

7. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

8. UNIX and Linux Applications

mynetworks - postfix

Hi guys. I want to allow all IPs to use my smtp server running postfix. what should i write in mynetworks parameter? (1 Reply)
Discussion started by: majid.merkava
1 Replies

9. UNIX and Linux Applications

Postfix: Active Directory and postfix alias

I have a mailserver with postfix i want to alias all mail for administrator@domain.fqdn to root@domain.fqdn I have the aliases configured,and i did newliases but doesn't work. How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

10. UNIX for Dummies Questions & Answers

Postfix Problem

Hello, I have a problem remotely connecting to the postfix. It sais "Connection refused". # telnet 104.200.16.232 25 Trying 104.200.16.232... telnet: connect to address 104.200.16.232: Connection refused But the postfix is started and running. # telnet 127.0.0.1 25 Trying... (3 Replies)
Discussion started by: galford
3 Replies
mfontset_lookup(3m17n)						 The m17n Library					    mfontset_lookup(3m17n)

NAME
mfontset_lookup - Lookup a fontset. SYNOPSIS
MPlist * mfontset_lookup (MFontset * fontset, MSymbol script, MSymbol language, MSymbol charset) DESCRIPTION
Lookup a fontset. The mfontset_lookup() function lookups fontset and returns a plist that describes the contents of fontset corresponding to the specified script, language, and charset. If script is Mt, keys of the returned plist are script name symbols for which some fonts are specified and values are NULL. If script is a script name symbol, the returned plist is decided by language. o If language is Mt, keys of the plist are language name symbols for which some fonts are specified and values are NULL. A key may be Mt which means some fallback fonts are specified for the script. o If language is a language name symbol, the plist is a FONT-GROUP for the specified script and language. FONT-GROUP is a plist whose keys are FLT (FontLayoutTable) name symbols (Mt if no FLT is associated with the font) and values are pointers to MFont. o If language is Mnil, the plist is fallback FONT-GROUP for the script. If script is Mnil, the returned plist is decided as below. o If charset is Mt, keys of the returned plist are charset name symbols for which some fonts are specified and values are NULL. o If charset is a charset name symbol, the plist is a FONT-GROUP for the charset. o If charset is Mnil, the plist is a fallback FONT-GROUP. RETURN VALUE
It returns a plist describing the contents of a fontset. The plist should be freed by m17n_object_unref(). COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA) Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST) Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>. Version 1.6.2 12 Jan 2011 mfontset_lookup(3m17n)
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy